Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
“A man, a plan, a canal: Panama” is a palindrome.
“race a car” is not a palindrome.
其中可以在以后刷题中用到的:
Character.isLetterOrDigit()
Character.toLowerCase()
1 | public class Solution { |