Palindrome check
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version.
Palindrome check
A palindrome reads the same forwards and backwards. Return true if s does, ignoring case and spaces, so Race car counts. Clean the string first (toLowerCase, remove spaces), then compare characters moving inward from both ends.
Difficulty 3/5 · 200 coins + a small bonus on first completion today
Complete isPalindrome(String s) so it returns true when s reads the same forwards and backwards, ignoring case and spaces.
Click Run to see the output here.