Determine whether s is a palindrome after removing every non-alphanumeric character and comparing letters without regard to case.
Input / output
s: stringExamples
"A man, a plan, a canal: Panama" returns true."race a car" returns false.Constraints
0 <= s.length <= 200,000A-Z, a-z, and 0-9.Follow-up Can you solve it with two pointers and constant auxiliary space instead of building a cleaned copy?