0-1 knapsack every time i am getting 0 as a ans
no,140 is the right ans i have used the same input which is being used in the video
please check ur input
capacity is 7 . and there is no bag with capacity less than equal to 7 , so obivously answer should be 0
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.