Https://ide.codingblocks.com/s/317015

0/1 knapsack question i am getting correct answer but its not passing all test cases?? plz rectify code


i have corrected the code with comments please dry run it and understand the mistakes .
Hope it helps :blush:
Mark the doubt as solved if it is solved and rate me accordingly