Concept Flow - Palindrome Detection
Start with input string
Set left pointer at start
Set right pointer at end
Compare characters at left and right
Return False: Not palindrome
Yes
Move left pointer right
Move right pointer left
Left pointer >= Right pointer?
No→Repeat comparison
Yes
Return True: Is palindrome
We use two pointers starting at the ends of the string, compare characters moving inward until pointers meet or mismatch is found.
