how to solve the next palindrome

how to find the next smallest palindrome smallest than ‘K’(k<1000000) i’m not getting any idea can u please help .please give me the logic to solve this

1 Like

If you are talking about NXTPALIN problem, realize one thing - K is small :wink:

3 Likes

calypso bay
calypso bay reviews