I am unable to comprehend why it’s not possible to return the string in the way i have returned it?
Kindly, give me conceptual knowledge of it!
Link:https: //ide.codingblocks.com/s/186199
I am unable to comprehend why it’s not possible to return the string in the way i have returned it?
Kindly, give me conceptual knowledge of it!
Link:https: //ide.codingblocks.com/s/186199
Hi, I have corrected your code in the same link( and commented your original code).
Please have a look.
and some important points to notice.
in recursive function , you can always observe that problem must be reduced in every next call. like in this case string become smaller and smaller.
so you should not call the recursive function again with same problem(same string in your case).
Thanks
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.