Your question is Two-Pointer Palindrome Check. 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.
Honeywell Forge may receive asset labels and operator-entered identifiers with inconsistent capitalization and punctuation. Given a string, determine whether it is a palindrome after ignoring non-alphanumeric characters and treating uppercase and lowercase letters as equal.
Use an optimized two-pointer approach. The solution should scan inward from both ends without constructing a second normalized string.
Implement is_palindrome(s), where s is a Python string. Return True if the normalized string reads identically from left to right and right to left; otherwise return False. A normalized string contains only alphanumeric characters, compared case-insensitively. An empty normalized string is considered a palindrome.
def is_palindrome(s):