818. String Palindrome
1
Easy
Given a string, determine if it is a palindrome (reads the same forwards and backwards). Return true if it is a palindrome, otherwise return false.
Input Format
A string.
Output Format
Return true if the string is a palindrome, otherwise return false.
Example
Input
lool
Output
true
Constraints
1 <= s.length() <= 2*105
s consists only of lowercase, printable ASCII characters.
s consists only of lowercase, printable ASCII characters.
Loading...
View Submissions
Console