I am not able to get the repeated state which are repeating… which are the states repeating can you give with example??
0-1 knapsack dp
sir i am doing by it by starting fron 0 and through n will it work my condition is if(i==n || w==0) return 0
yeah it will,
also this will also have overlapping cases so use dp to avoid it
ohk thanks sir…
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.
