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 pricingDecide whether a string can split into pieces that are palindromes.
What this asks
Decide whether a string can split into pieces that are palindromes.
Try each prefix and recurse on the rest only when the prefix is a palindrome.
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