Longest Palindrome — Brute Force O(n³)

Step through every substring, checking each for palindrome properties. Watch the algorithm compare characters from both ends inward.

0 / 0
substring
comparing
match
mismatch
Current substring
Best palindrome
prev   next   Space play/pause   R reset   S skip to match