diff --git a/u11/knapsack.py b/u11/knapsack.py new file mode 100644 index 0000000..04fb790 --- /dev/null +++ b/u11/knapsack.py @@ -0,0 +1,10 @@ +from functools import lru_cache + +def maximum_value(maximum_weight, items): + for w in maximum_weight: + if maximum_weight < w: + continue + +@lru_cache +def helper(i,w): + if i == len(items) or i == 0: \ No newline at end of file