Loading repovive.com/problems/classics/4
You have n types of items. Item type i has weight wi and value vi. You can use each type unlimited times.
Given a knapsack with capacity W, find the maximum total value you can carry.
max
3 8 2 3 3 4 4 5
For this input, the required output is 12.
12
2 10 5 10 4 40
For this input, the required output is 80.
80
1 3 2 5
For this input, the required output is 5.
5