125. Valid Palindrome easy题
也是双指针的题
这次有想到怎么解
但判断大小写的函数没用过
所以还是有上网查
class Solution {
public:
bool isPalindrome(string s) {
int start = 0;
const int n = s.length();
int end = n-1;
while(start<end){
while(start<end && !isalnum(s[start])) start++;
while(start<end && !isalnum(s[end])) end