I have some concern

I understood everything with the video but i cannot code for a problem like this on my own. Is it a difficult problem or i am lacking understanding of recursion?

hello @laksh.rustagi12

it is not difficult problem, neither u are supposed to solve it in first go.
think what can be possible step for rat to move from (i,j) so that should be ur rnext ecusive calls from(i,j).
think about the base case i,e when u should stop .
and then just code it

okay got it
Btw bhaiya which college are you from?

nit delhi


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.