125. Valid Palindrome

Description

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.

Note: For the purpose of this problem, we define empty string as valid palindrome.

Constraints

  • s consists only of printable ASCII characters.

Approach

Examples

Input: "A man, a plan, a canal: Panama"

Output: true

Solutions

Follow up

Last updated