Valid Palindrome
Try to solve the Valid Palindrome problem.
We'll cover the following
Statement
Given a string, s
, return TRUE
if it is a palindrome; otherwise, return FALSE
.
A phrase is considered a palindrome if it reads the same backward as forward after converting all uppercase letters to lowercase and removing any characters that are not letters or numbers. Only alphanumeric characters (letters and digits) are taken into account.
Constraints:
s.length
s
consists only of printable ASCII characters.
Examples
Create a free account to view this lesson.
Continue your learning journey with a 14-day free trial.
By signing up, you agree to Educative's Terms of Service and Privacy Policy