#108 Medium Time O(n³) Space O(n) Animated

Word Break

Determine if string can be segmented using dictionary words.

LeetCode ↗
Approach: Dynamic Programming (1D)
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps