Skip to content

Commit ee971d2

Browse files
committed
Code review comments
1 parent 8dcfb31 commit ee971d2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/com/thealgorithms/dynamicprogramming/Knapsack.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public final class Knapsack {
1515
private Knapsack() {
1616
}
1717

18-
// Validate input for knapsack problem, otherwise throws exception
1918
private static void throwIfInvalidInput(final int weightCapacity, final int[] weights, final int[] values) {
2019
if (weightCapacity < 0) {
2120
throw new IllegalArgumentException("Weight capacity should not be negative.");

0 commit comments

Comments
 (0)