Skip to content

Commit 1ff78ec

Browse files
committed
[Algorithm Design and Techniques]
1 parent 17d192e commit 1ff78ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
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(
8-
// 'item ' + i + ' can be part of solution w,v: ' + weights[i - 1] + ',' + values[i - 1]
9-
// );
7+
// console.log(
8+
// item ' + i + ' can be part of solution w,v: ' + weights[i - 1] + ',' + values[i - 1]
9+
// );
1010
i--;
1111
k -= kS[i][k];
1212
} else {

0 commit comments

Comments
 (0)