Palindrome after cleaning
Easystringtwo pointers
Return true if s reads the same both ways after removing every character that isn't a letter or digit and ignoring case.
Example 1
Input: s = "A man, a plan, a canal: Panama" Output: true
Example 2
Input: s = "race a car" Output: false
Constraints
- 0 ≤ s.length ≤ 2·10⁵
- Printable ASCII characters
Submit checks your solution against 9 tests, including hidden ones.
/**
* @param {string} s
* @return {bool}
*/
function isPalindrome(s) {
}