Longest Palindrome — Expand Around Center O(n²)

For each center, expand outward while characters match. Odd centers (single char) and even centers (gap between chars) are handled separately.

0 / 0
center
palindrome
comparing
match
mismatch
Expand type
Current palindrome
Best palindrome
prev   next   Space play/pause   R reset   S skip to best