This code isn't working for cases like: - abbbca Please help for that

This code isn’t working for cases like: - abbbca
Please help for that.

hello @cbcao263
the recify it , do this->
add inp[idx] in ur output string only when inp[idx]!=inp[idx+1] or idx is the last valid index

Same Issue, https://ide.codingblocks.com/s/341354
Please help in this One
And Also tell the approach you followed

check now->

pls refer my previous reply

Okayy Thanks a lot Sir.
Means You did like If you find any similar char then you just incremented the index and call recursively again but if you find them unequal then you inserted 1st one and call on the next one.

yeah right …

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.