Maximize value with unlimited item copies under a capacity limit.
Constraints
Example
>>> max_value(10, [2, 3], [3, 4]) 15 >>> max_value(0, [1, 2], [5, 6]) 0 >>> max_value(10, [5], [10]) 20 >>> max_value(7, [2, 3], [4, 5]) 15
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints