REcursion duplicate

https://ide.codingblocks.com/s/276126 sir can u tell me error in it

hello @anuragavm123


check condition of ur while loop.

So sir u mean to say it should be s[i]

no u should start from last index of the string say j.
and continue doing s[j+1]=s[j];
till j>=i.
and after each iteration do j–;

Sir i had tried that concept but it is giving complition error


i have updated ur code pls check

Thank u sir i understood my mistake i had called recursive funtion 2 time :sweat_smile:

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.