Strings-Difference in Ascii Codes


giving one test case wrong

Hi @vikashkmr519,
When i open your code it gives me a c program which is giving invalid output.Can you attach another link

You are inserting at r=i+n … what if the size of difference x2-x1 is two digits … Like 14 … then your code will fail… take a example of input as ‘ama’

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.