Your question is Palindrome Checking. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Chevron systems may receive short text labels or inspection codes that need basic structural validation. Given a string, determine whether it reads identically forward and backward after ignoring letter case and all non-alphanumeric characters.
Implement is_palindrome(s), where s is a string. Return True if the normalized string is a palindrome, otherwise return False.
Normalization means:
a-z and 0-9.Use a two-pointer approach that compares characters from both ends. Do not create a second normalized string.
def is_palindrome(s):