Skip to main content

Valid Palindrome

JUNIOR
MicrosoftFacebook

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

Example:

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

Examples:

Input 1:{"s":"A man, a plan, a canal: Panama"}
Output 1:true
Input 2:{"s":"race a car"}
Output 2:false

Loading editor...

Run your code to see results

Click the Run button above