Coding Challenge

Valid Palindrome

Easy
stringtwo-pointers

Check if a string is a palindrome ignoring punctuation and case.

Return true if the string is a palindrome considering only alphanumeric characters and ignoring case.

Examples

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

Output: true

Constraints

  • 0 <= s.length

Preparing your coding workspace...