It shows wrong answer for one test Case. I am not understanding why? if time limit is issue it should show Time limit exceeded.
Can you explain why it shows wrong answer. If Time limit exceeded it should show that?
I modified the code a bit to check even the last digit (the case was missed). Now it passes all the Test cases. Is there any other case I might be missing that is not defined in the test case? Please let me know in case any.
its correct now … …