I can do the normal approach for it...but I just want to know is there any better approach rather than recursion

I can do the normal approach(brute force) for it…but I just want to know is there any better approach rather than recursion…

hi @kaushikjatin recursion is the best option according to me, the editorial solution is also using recursion only.

okkey…

1 Like

@kaushikjatin please mark your doubt as resolved

please provide the link for that…as it is hard to just go to that specific question and then resolve it…

@kaushikjatin only you can resolve the doubt, i do not have a link for that. Go to the doubts section from your dashboard and resolve from there if you are having difficulty in going to the specific topic.

okkey…I will resolve it…

This one is already resolved…