Home
Topics
Practice
Roadmap
DSA Tracker
Code Editor
Tech Blogs
More
Sign in
Get started
Loading question...
Feedback
Check for Palindrome
Medium
00:00
0 users online
Share
Description
Solution
Submissions
Discussion
Write a function that checks if a string is a palindrome.
Sample Input:
"racecar"
Sample Output:
true
Hints
Hint 1
A palindrome reads the same forwards and backwards
Hint 2
Compare the string with its reverse
Hint 3
Consider case sensitivity
Code Editor
Reset
Run
Save
Loading...