Tilling Problem-II Error


On submission TLE is displayed. Please check and let me know the error. Thank you!

hello @mahfoozhaque91

the code is correct , u need to optimise it using dynamic programming to pass all cases

Hello Sir, I’m not really sure how to use dynamic programming to pass all the cases. Please explain.

…

have u studied dynamic programming?

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.