We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5da5b60 commit b528176Copy full SHA for b528176
src/main/java/com/fishercoder/solutions/_564.java
@@ -1,23 +1,5 @@
1
package com.fishercoder.solutions;
2
3
-/**
4
- * 564. Find the Closest Palindrome
5
- *
6
- * Given an integer n, find the closest integer (not including itself), which is a palindrome.
7
-
8
- The 'closest' is defined as absolute difference minimized between two integers.
9
10
- Example 1:
11
12
- Input: "123"
13
- Output: "121"
14
15
- Note:
16
17
- The input n is a positive integer represented by string, whose length will not exceed 18.
18
- If there is a tie, return the smaller one as answer.
19
20
- */
21
public class _564 {
22
public static class Solution1 {
23
0 commit comments