Skip to content

Commit

Permalink
Update dynamic_programming/01knapsack_recursive.dart
Browse files Browse the repository at this point in the history
Co-authored-by: Parowicz <[email protected]>
  • Loading branch information
mohammadreza490 and Parowicz authored Feb 9, 2021
1 parent 87833ad commit f667431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dynamic_programming/01knapsack_recursive.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void main() {
print(ans);

test('TC: 1', () {
expect(knapSackProblem(4, 10, [1, 4, 5, 6], [2, 3, 6, 7]), 10);
expect(knapSackProblem(10, [1, 4, 5, 6], [2, 3, 6, 7]), 10);
});

ans = knapSackProblem(5, 100, [2, 70, 30, 69, 100], [1, 70, 30, 69, 100]);
Expand Down

0 comments on commit f667431

Please sign in to comment.