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 pricingFind palindromes by expanding from odd and even centers.
What this asks
Find and count palindromes by expanding around each center.
Two passes, odd and even centers, expanding while both ends agree.
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