Leet Code OJ 125. Valid Palindrome [Difficulty: Easy]

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.
Note:
Have you consider that the string might be empty? This is a good question to ask during an interview.
For the purpose of this problem, we define empty string as valid palindrome.

Java版代码：

public class Solution {
public boolean isPalindrome(String s) {
char[] charArr=s.toCharArray();
List<Integer> list=new ArrayList<>();
int fix='a'-'A';
for(char c:charArr){
if((c>='a'&&c<='z')||(c>='0'&&c<='9')){
}else if(c>='A'&&c<='Z'){
}