Example 1
Input
text = "A man, a plan, a canal: Panama"
Output
true
Loading CodeSprint...
/problems/palindrome-check
Ignore punctuation, spaces, and letter casing, then determine whether a string reads the same from left to right and right to left.
Implement this function and return the result. CodeSprint supplies each test case automatically.
isPalindrome(text) → booleanInput
text = "A man, a plan, a canal: Panama"
Output
true
Input
text = "coding interview"
Output
false
Constraints
0 <= text.length <= 200,000 text contains printable characters.