https://ide.codingblocks.com/s/337457 .
This is my code. It is correctly doing what is asked in the question but in failing a test case. Please help.
https://ide.codingblocks.com/s/337457 .
This is my code. It is correctly doing what is asked in the question but in failing a test case. Please help.
overall you logic is not correct ,
Try for this input:
2
abe
abc
correct output:
abc
abe
Yes, i understood my error based on your example. I corrected it, works well now. Thanks 