Palindromes are a classic interview problem. The optimal solution uses two pointers and ignores non-alphanumeric characters.
Implement isPalindrome so it returns true for "A man, a plan, a canal: Panama".
Palindromes are a classic interview problem. The optimal solution uses two pointers and ignores non-alphanumeric characters.
Implement isPalindrome so it returns true for "A man, a plan, a canal: Panama".