A phrase is a palindrome if, after converting all uppercase letters to lowercase and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric characters include letters and numbers.
Given a string s, return true if it is a palindrome, or false otherwise.
s = "A man, a plan, a canal: Panama"trues = "race a car"falses = " "true1 <= s.length <= 2 * 10^5s consists only of printable ASCII charactersExpected time complexity: O(n)Run your code to see results
Use Cmd+Enter to run