Maximize value within a weight limit, each item taken at most once.
Constraints
Example
>>> knapsack_solution([1,2,3], [6,10,12], 5) 22 >>> knapsack_solution([2,3,4,5], [3,4,5,6], 5) 7 >>> knapsack_solution([5], [10], 4) 0
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints