Sir doubt in this question

sir why cant we top down approach here???

hello @tejasddongare there are some tricks to do some particular questions .
this is the process that you think that you should solve every problem by recursive and bottom up approach .
but you should just learn whether you are able to solve particular question by any of the method or not.
The main thing is you have to build your logic .
Happy Learning !!

sir my doubt is can we do this question using TopDown DP??

@tejasddongare i guess no .

https://ide.codingblocks.com/s/348013 we can check this code

@tejasddongare yes this code is correct .
if you feel that your doubt is cleared please mark this doubt as resolved.
Happy Learning !!

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.

sir how can i apply for TA in codingblocks ?

and sir how can i give ratings?? after doubt clearing?