This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingA palindrome reads the same both ways. Watch the DP table fill smallest-window-first for "babad": do the edges match, and was the inside already a palindrome?
What this asks
Find the longest substring that reads the same forwards and backwards.
Inner stretches first: a pair of ends is a palindrome when the characters match and the inside already is, with expansion around centers as the manual version.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing