https://ide.codingblocks.com/s/260399 , I am solving this problem on gfg
Can you pls take a look at my code, and tell the issue
I just gave the function part to you, I am already doing whatever you said
https://practice.geeksforgeeks.org/problems/0-1-knapsack-problem/0
ok,pls share the complete code (everthing) ,i will check
declare ur 2d dp like this ->

instead of hardcoded value .
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.