Your question is Palindrome Algorithm on Whiteboard. 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.
Sandia National Laboratories systems such as Astra may process human-readable labels containing spaces, punctuation, and mixed capitalization. Write an algorithm that determines whether a string is a palindrome after normalization.
A normalized string is read from left to right after removing every character that is not an ASCII letter or digit and treating uppercase and lowercase letters as equivalent. Return True if the normalized string reads identically forward and backward; otherwise, return False.
Implement is_palindrome(s), where s is a string of ASCII characters. Return a Boolean value. An empty normalized string is considered a palindrome.
def is_palindrome(s):