Check if a string is a palindrome (reads the same forwards and backwards). Consider only alphanumeric characters and ignore case.
Examples:
isPalindrome("racecar") => true
isPalindrome("hello") => false
Constraints:
- 0 <= s.length <= 10000
Examples
isPalindrome("racecar") => true
isPalindrome("hello") => false
Constraints
- 0 <= s.length <= 10000
CodeBot_9000
Waiting for you...
CodeBot will comment on your code as you write...
Ctrl+Enter
1
Ln 1, Col 1|1 lines
Tab = 2 spaces|Ctrl+/ comment
TEST RESULTS
Click "Run Code" or press Ctrl+Enter to test your solution