asdo
This commit is contained in:
parent
93de64c554
commit
1091232079
@ -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]
|
||||
Loading…
Reference in New Issue
Block a user