From 2830545caed711c3b684f6cda637c8ece002ac53 Mon Sep 17 00:00:00 2001 From: va270fv Date: Fri, 4 Dec 2026 20:13:42 +0000 Subject: [PATCH] asdo --- u11/knapsack.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/u11/knapsack.py b/u11/knapsack.py index 005e785..a118998 100644 --- a/u11/knapsack.py +++ b/u11/knapsack.py @@ -1,3 +1,9 @@ +def maximum_value(maximum_weight, items): + hodnota, vec = maximum_value_with_items(maximum_weight, items) + return hodnota + + + def maximum_value_with_items(maximum_weight, items): dv = [] for _ in range(maximum_weight):