0/1 knapsack question i am getting correct answer but its not passing all test cases?? plz rectify code
Https://ide.codingblocks.com/s/317015
i have corrected the code with comments please dry run it and understand the mistakes .
Hope it helps 
Mark the doubt as solved if it is solved and rate me accordingly