Check Palindrome
Given a string s
, return whether it is a palindrome.
Constraints
n ≤ 100,000
wheren
is the length ofs
https://binarysearch.com/problems/Check-Palindrome
Examples
Example 1
Input
- s =
evilolive
Output
- answer =
True
Example 2
Input
- s =
racecar
Output
- answer =
True
Example 3
Input
- s =
palindrome
Output
- answer =
False
Leave a comment