Strings easy time O(n) space O(1)
Palindrome Check
A palindrome reads the same forwards and backwards. Compare the first and last characters, then step inward. A single mismatch means it is not a palindrome.
Check whether "racecar" is a palindrome.
1 / 5
Practice
Machine twin: /dsa-viz-v2/palindrome-check.json — the full deterministic run as structured data.