leetcode680. 驗證迴文字符串 Ⅱ(java)

​ public static boolean validPalindrome(String s) { if (s.length() <= 2) {//若是字符串長度小於等於2,直接返回true return true; } return checkResult(s, 0, s.length() - 1, 1); } private static Boo
相關文章
相關標籤/搜索