Remove duplicates string recursion


only one test case is getting passed.but ouput is coming correct.why.

Hello @lovely please retry to submit your code.
your code is passing all the test cases:
refresh your page and try then:


Happy Learning!!

i tried again on refreshing it is not getting passed

@lovely please share the screenshot because your code is passing all the test cases in my case.

actually i later on catch my mitsake .it was printing wrong otput for string aaaabbbc as aabbc which is wrong .and we have to check for the whole string

@lovely you can mark this as resolved.
Happy Learning!!

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.