Skip to content

Commit c1d88dc

Browse files
authored
Update knapsack.js
1 parent ab2dbaa commit c1d88dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/algorithms/dynamic-programing/knapsack.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ function findValues(n, capacity, kS) {
44
// console.log('Items that are part of the solution:');
55
while (i > 0 && k > 0) {
66
if (kS[i][k] !== kS[i - 1][k]) {
7-
console.log(
7+
/*console.log(
88
'item ' + i + ' can be part of solution w,v: ' + weights[i - 1] + ',' + values[i - 1]
9-
);
9+
);*/
1010
i--;
1111
k -= kS[i][k];
1212
} else {

0 commit comments

Comments
 (0)