Remove duplicates - string

I AM NOT ABLE TO PASS THE TESTCASES OF THIS PROBLEM

https://ide.codingblocks.com/s/107343 - THIS IS THE URL OF THE CODE

@Ayushi21,
Your code is working just fine. It is just that you haven’t taken any input string. You have passed a constant string.

https://ide.codingblocks.com/s/107676 - IS THIS WHAT YOU ARE TRYNA SAY.

No. After declaring S, seek input too.
cin>>S;
Dont write S=“something”.

ohhk thank you so much sir.

1 Like