easyTwo pointers1 bug
Palindrome Pointers
The validator says "racecar" and "abba" are not palindromes.
isPalindrome(s) returns true if s reads the same forwards and backwards.
Fix the code so every test passes. Keep the function name isPalindrome.
Test cases
- isPalindrome("racecar") → true
- isPalindrome("abca") → false
- isPalindrome("") → true
- isPalindrome("abba") → true
Hints
each hint costs XPStuck? Hints go from a nudge to the exact fix.