one test case is not passing
Dup_character_formatting
Swati, your code is failing when you have no duplicate character in the input, for eg
Input : abcd
Your output : @
Expected output: abcd
Try to use some condition in the code for this kind of input…
1 Like
can u find the error because just by adding a cout(statement) in the base case of the function it gives the correct output.
can someone please respond
Ok, let me check your code again…
Swati, I have made some changes in the code, pls refer to this edited code,