Top Down Approach

I have tried Top Down Approach and it gives proper answers but there is a “MLE” Error upon submission of the solution.
Please check my latest submission and help me out to find the problem in my code

hello @vsinghal202

go to this link -> https://ide.codingblocks.com/

paste ur latest code in the editor , press ctrl + s and then save

a url will be generated in ur search bar, copy that url and paste it here

pass ur dp vector by refernce

Yeah… it has now passed all test cases. Thank you very much 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.