This commit is contained in:
Marege 2026-12-03 16:39:53 +01:00
parent 436a92c84a
commit bdbb2e0a11

View File

@ -4,11 +4,6 @@ def maximum_value(maximum_weight, items):
return 0 return 0
if items == 0 or items is None or items ==[]: if items == 0 or items is None or items ==[]:
return 0 return 0
if len(items) == 1:
curent_dic = items[0]
weight = curent_dic.get("weight")
if weight > maximum_weight:
return 0
#ділимо на лісти #ділимо на лісти
weight = [] weight = []
value = [] value = []