Add example problem.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user