|Write a program to check if a string is a palindro...|General Coding Problems

fn is_palindrome(s: &str) -> bool

Easy

Write a program to check if a string is a palindrome (ignoring spaces, punctuation, and case).

fn is_palindrome(s: &str) -> bool

Asked in

accenture

Examples

Example 1:
Input: A man, a plan, a canal: Panama
Output: true
Example 2:
Input: race a car
Output: false
Submit Result

Click Run to test sample cases, or Submit to evaluate all cases