Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Word Break
Bookmark
Input
Standard
Reuse word
No solution
Custom
s
=
leetcode
,
wordDict
=
[leet, code]
wordDict = {"leet", "code"}
s
0
l
1
e
2
e
3
t
4
c
5
o
6
d
7
e
dp
0
F
1
F
2
F
3
F
4
F
5
F
6
F
7
F
8
F
algo
master
.
io
Step:
Word Break: Can the string be segmented into dictionary words?
0 / 76
Input
Standard
Reuse word
No solution
Custom
s
=
leetcode
,
wordDict
=
[leet, code]
0 / 76
wordDict = {"leet", "code"}
s
0
l
1
e
2
e
3
t
4
c
5
o
6
d
7
e
dp
0
F
1
F
2
F
3
F
4
F
5
F
6
F
7
F
8
F
algo
master
.
io
Step:
Word Break: Can the string be segmented into dictionary words?