CodeOath
← All problems

Valid Palindrome

Easy
strings

Return true if a string reads the same forwards and backwards (case-insensitive).

Example:

Input: str = "racecar"
Output: true