Initializing model...

Palindrome Check

easy

Given a string `s`, determine if it is a palindrome. Consider only alphanumeric characters and ignore case.

Return `True` if it is a palindrome, `False` otherwise.

Function Signature

def is_palindrome(s: str) -> bool:

Examples

Input: s = "A man, a plan, a canal: Panama"
Output: True
Input: s = "race a car"
Output: False