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 pricingAnswer in-range palindrome questions from precomputed radii.
What this asks
Answer longest-palindrome questions inside substrings, with preprocessing.
Build per-center radii once; each query reads the maximal radius that stays inside its range.
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