Tell me the error
bro, u are going wrong on the base case as well as the update of the char array
first try creating a separate array for output since shifting of character would be required in case the i/p char array is getting updated
i have tried to work out using string which can be easily understood
without creating separate output. In the same way I went for remove duplicates , but showing error.
I get an answer for the code u have posted,
i did not receive any error
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.