Is Palindrome

Strings ยท medium

Implement `isPalindrome(str)` that returns `true` if `str` reads the same forwards and backwards (case-insensitive, ignore non-alphanumeric characters).

Hints
  • Strip non-alphanumeric characters first.
  • Compare the cleaned string with its reverse.
Loading...

Run your code to see results.