Skip to content

Commit 7b8057a

Browse files
committed
Formatted Knapsack.java to pass linter and added 0/1 Knapsack algorithm
1 parent 1e16492 commit 7b8057a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ public static void main(String[] args) {
7272
int weightCapacity = 50;
7373

7474
int maxValue = knapSack(weightCapacity, weights, values);
75-
System.out.println("Maximum value = " + maxValue); // Output: 220
75+
System.out.println("Maximum value = " + maxValue); // Output : 220
7676
}
7777
}

0 commit comments

Comments
 (0)