@phantom 2nd case wrong answer help…
the question link is not opening for me post the question here
in ur code u are just replacing the charater at t+1 pos of ur string which is wrong
Either get the string move by 1 if u find dublicate or use the insert function
if there is any problem reply i will share the code
plz share ur code …
ur code is correct .
declare much higher character array like char a;
Hi Nitesh, I tried your code and due to some errors, it is unable to pass all the test cases.
My code is working fine, you can go through it.
I am not getting any test cases passed. But code is providing same output as given in example test case"hello". Please help me out.