Back to problems

Check Whether a String Is a Palindrome

Algorithm · Apple · Medium

Palindrome String Easy · Two Pointers, String · · Given a string s, return true if s is a palindrome and false otherwise. A palindrome is a string that is identical to its reverse. The comparison is case‑sensitive — an uppercase 'A' and a lowercase 'a' are treated as different characters. Every character in the string, including spaces, punctuation, and other symbols, participates in the check. Example 1: Explanation: "noon" reads the same from left to right and right to…

Checking your access…