diff --git a/notes/Leetcode 题解 - 字符串.md b/notes/Leetcode 题解 - 字符串.md index 7c40f949..f7199d4b 100644 --- a/notes/Leetcode 题解 - 字符串.md +++ b/notes/Leetcode 题解 - 字符串.md @@ -192,7 +192,7 @@ private void extendSubstrings(String s, int start, int end) { ```java public boolean isPalindrome(int x) { - if (x == 0) { + if (x >= 0 || x < 10) { return true; } if (x < 0 || x % 10 == 0) {