Where is the error

flow seems to be right but no answer.

@deepak_g22 https://ide.codingblocks.com/s/125286
Refer this. I have made some changes.

yes i got this one but i’m not able to track where is my code is getting stuck. can u please help?

Your flow was going wrong previously. At any particular moment you were doing 2 recursive calls as in line 21 and 22 which was not required. You can build a recursive tree to check how your flow was going.
For the explanation of the correct approach, you can refer the lecture video which is already there.

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.