Add example problem.

This commit is contained in:
2019-12-10 07:02:58 -05:00
parent 4a7034225d
commit bb9678a493
3 changed files with 7 additions and 2 deletions

View File

@@ -97,6 +97,7 @@ def solve_knapsack_depth_first_search(knapsack):
# Take current item.
max_value = get_max_value(index, capacity)
print(max_value)
item = knapsack.items[index]
# print("max_value: {}".format(max_value))
max_value_not = get_max_value(index + 1, capacity)