this is my solution to next smallest pallindrome
i have tried every possible test case on my own it works fine. my code was accepted on codechef as a correct answer.
try it with this:
is it the integer overflow?
even after using long long int my solution is not being accepted
Did you miss this bit? You’ll need to use some other data type to store K.