diff --git a/recursion_dynamic/knapsack_01/knapsack_solution.ipynb b/recursion_dynamic/knapsack_01/knapsack_solution.ipynb index aff4319..77501f8 100644 --- a/recursion_dynamic/knapsack_01/knapsack_solution.ipynb +++ b/recursion_dynamic/knapsack_01/knapsack_solution.ipynb @@ -193,8 +193,8 @@ " j -= 1\n", " else:\n", " results.append(items[i])\n", - " i -= 1\n", " j -= items[i].weight\n", + " i -= 1\n", " return results" ] },