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 splits into dictionary words.
What this asks
Decide whether a string splits into dictionary words.
dp[i] is true when some earlier split point j has dp[j] true and the piece from j to i is a word.
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