Top down solution

please provide me the top down solution of this problem with explanation.

@D19APPPP0016 the video explanation is great, try to implement it by your own and tell where you are facing the problem, it will be good for you if you can code it on your own as it is very similar Knapsack problem. So try doing it again and if you face any problem then tell me.

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.