← 返回 microsoft 的题目列表Check if a number is a palindrome and find the next palindrome
类型:online_judge
Determine if a given number is a palindrome. For example, 1221 and 999 are palindromes. The follow-up question: Given a number, find the smallest palindrome that is larger than the given number. For example, for the input 132, the output should be 141.
Example
Input
1221
Output
True