← All problems

Valid Palindrome

easy

Given a string s, return true if it reads the same forwards and backwards after removing every non-alphanumeric character and ignoring case.

Example

Input: s = "A man, a plan, a canal: Panama"
Output: true
Loading...