Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Substring with Concatenation of All Words
Bookmark
Input
Example 1
Example 2
Example 3
Custom
s
=
barfoothefoobarman
,
words
=
[foo, bar]
words = [
foo, bar
]
b
a
r
f
o
o
t
h
e
f
o
o
b
a
r
m
a
n
0
5
10
15
algo
master
.
io
Step:
Start of algorithm
0 / 72
Input
Example 1
Example 2
Example 3
Custom
s
=
barfoothefoobarman
,
words
=
[foo, bar]
0 / 72
words = [
foo, bar
]
b
a
r
f
o
o
t
h
e
f
o
o
b
a
r
m
a
n
0
5
10
15
algo
master
.
io
Step:
Start of algorithm