首页 > TAG信息列表 > plindrome
125 plindrome
1. boolean 2. Character.isLetterOrDigit 3. two pointers 4. i<=j. 5. Character.toUpperCase(s.charAt(i)); public boolean isPalindrome(String s) { if(s.isEmpty()) return true; int i=0,j=s.length()-1; while(i<=j){125 plindrome
1. boolean 2. Character.isLetterOrDigit 3. two pointers 4. i<=j. 5. Character.toUpperCase(s.charAt(i)); public boolean isPalindrome(String s) { if(s.isEmpty()) return true; int i=0,j=s.length()-1; while(i<=j){