Determine if a string can be segmented into words from a dictionary using dynamic programming.
Constraints
Example
```python
can_break("leetcode", ["leet", "code"]) # True
can_break("applepenapple", ["apple", "pen"]) # True
can_break("catsandog", ["cats", "dog", "sand", "and", "cat"]) # False
```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints