loading…
Write is_palindrome(s) that returns True if s reads the same forwards and backwards, ignoring case and anything that is not a letter or digit.
is_palindrome("A man, a plan, a canal: Panama") -> True
is_palindrome("race a car") -> False
Stuck on the idea itself? The two pointers lesson walks through the pattern from scratch.