/**
Notes :
1. 0/1 Knapsack problem
2. u cant take an object more than one time.
suppose, u can stand with maximum 30 kg weight an object has a weight of 10 kg
but u can take the object only once, not 3 times, though u still have 20 kg space
3. calculate all the values up to 30 and save in an array dp[30]
if ur maxWeightLimit = i, thn dp[i] = maxValue u can get
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include