Recursion-add a char when duplicate char are found

https://ide.codingblocks.com/#/s/29533
my code for-https://hack.codingblocks.com/contests/c/457/335

Please help me with the logic, I’ve written my doubt in the comments of the code

https://ide.codingblocks.com/#/s/29545

i have coded this problem for you so that you can understand how to solve recursion string problems. Please have a look and ask if you are not able to understand something in my code. Then try other recursion problems by similar approach.

thank you again for your guidance

1 Like