Palindrome, Roughly — Solution & Editorial
Filter to alphanumeric characters, lowercase them, and compare with the reverse (or use two pointers skipping non-alphanumerics).
Complexity: O(length)
Filter to alphanumeric characters, lowercase them, and compare with the reverse (or use two pointers skipping non-alphanumerics).
Complexity: O(length)