Skip to content

Commit 64a27dc

Browse files
committed
Merge branch 'third-edition' of https://github.com/loiane/javascript-datastructures-algorithms into third-edition
# Conflicts: # src/js/algorithms/dynamic-programing/knapsack.js
2 parents 05e82e3 + ab2dbaa commit 64a27dc

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)