Problem Link: The Next Palindrome
Recently I am solving the problem of finding the immediate next palindrome to the given number N as described in the problem link above.
I have implemented the algorithm and ran on different test cases, and in all of them I am getting the right answer which I verified using SPOJ Toolkit.
I have gone through the links:
- Test Case for the next palindrome related to test-cases for this problem on Code-Chef, and also gone thorugh the Stack-Overflow thread related to this problem.
Can anyone tell me the test cases where my code will fail, as on online judges it is showing WA every-time I submit. My Code Link