Given an integer n, find the closest integer (not including itself), which is a palindrome.
The ‘closest‘ is defined as absolute difference minimized between two integers.
Example 1:
Input: "123" Output: "121"
Note:
s
[LeetCode] Find the Closest Palindrome 寻找最近的回文串
原文:http://www.cnblogs.com/grandyang/p/6915355.html