You are given n objects, a knapsack of capacity c, array v, and array w. The ith object has value v[i] and weight w[i].
Determine the maximum total value that you can get by selecting objects in such a manner that their sum of weights is not greater than the capacity c.
Input format
Output format
Print a single integer denoting the maximum value that you can get by selecting the objects.
Optimal selection is 1st and 4th object. Total value=(10+3)=13 Total weight=(10+10)=20. Total weight <= Capacity.