codelink : https://ide.codingblocks.com/s/188094
please correct my code and specify my error
0-N knapsack problem code problem
@Divya_321
Hello divya,
ur code is almost correct.
ur code
actually it should be something

mistakes
a) u have o based indexing so u can access element from index 0 to n-1 that’s why removed equality sign
b) else part should not be there
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
thank you @aman212yadav for correcting my silly mistakes but after doing chnages specified by you again I am getting wrong answer for all the test cases please look into it and correct it asap
