425. String Palindrome
0
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
true or false, depending on whether the string is a palindrome or not.
Example
Input
lool
Output
true
Constraints
1 <= s.length() <= 2*10^5
s consists only of lowercase ASCII characters.
Loading...
View Submissions
Console