Hey, Need help. I am sorting the string and where ever am finding a mismatch , I am printing that character and all characters after it, excluding the first occurrence of the mismatched character, …
Please help me , I am getting WA .
CODE —> IzhSPz - Online C++ Compiler & Debugging Tool - Ideone.com
Thanks
See this,
Your Code Link: 0h93wi - Online C++ Compiler & Debugging Tool - Ideone.com
AC’ed Code Link: lZolSD - Online C++ Compiler & Debugging Tool - Ideone.com
Output differs for many test cases
For Example:
CVDRUJG
IFHFWJ
FJFIT
FEFEGFHINE
.
.
and many more
For these cases your code prints
CDVRUJG
FIHFWJ
FFJIT
EFFEGFHINE
Where as the Actual Solutions are:
CDRUJGV
FHFIWJ
FFIJT
EFEFEGFHIN
Happy Debugging… 
1 Like