From 109123207979386c206583b79e81b789752405c5 Mon Sep 17 00:00:00 2001 From: va270fv Date: Fri, 4 Dec 2026 20:40:42 +0000 Subject: [PATCH] asdo --- u11/knapsack.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/u11/knapsack.py b/u11/knapsack.py index 734b0a7..45f8c18 100644 --- a/u11/knapsack.py +++ b/u11/knapsack.py @@ -11,7 +11,7 @@ def maximum_value_with_items(maximum_weight, items): for item in items: vaha = item["veight"] - hodnota = ["value"] + hodnota = item["value"] for a in range(maximum_weight, vaha - 1, -1): old_hodnota, old_vec = dv[a - vaha] @@ -22,7 +22,4 @@ def maximum_value_with_items(maximum_weight, items): - - - return dv[maximum_weight] \ No newline at end of file