This commit is contained in:
va270fv 2026-12-04 20:40:42 +00:00
parent 93de64c554
commit 1091232079

View File

@ -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]