Recursion Subsequences

how to make this code work for string??

https://ide.geeksforgeeks.org/9y5JJJT1E1

@mikki18
hello tushar,
a)u are are using c++ string so no need to append \0 at the end.
b) call statement in line no 48 before line no 43.

i did not understood what you are trying to say.please can you elaborate.

check this -> https://ide.geeksforgeeks.org/P4dPmm3zM9
and let me know if u face any issue in it

thank you it is working. :grinning:

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.

Thank you my doubt is cleared.