Check Palindrome (Case-Insensitive)
E · easyP · Verified PYQstrings
Problem
Given a string, check if it is a palindrome. Ignore spaces and case while checking.
Example
Input
Race Car
Output
YES
Remove spaces, convert to lowercase, compare with its reverse.