Last Updated: September 2026
Given a number as an input, find the following smallest palindrome number. For simplicity, assume the input value will not exceed 1 million. The next palindrome may be greater than 1 million.
n is an integer.n will not exceed 1,000,000. The resulting palindrome may be greater than this limit.