Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
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"]
0
b
1
a
2
r
3
f
4
o
5
o
6
t
7
h
8
e
9
f
10
o
11
o
12
b
13
a
14
r
15
m
16
a
17
n
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"]
0
b
1
a
2
r
3
f
4
o
5
o
6
t
7
h
8
e
9
f
10
o
11
o
12
b
13
a
14
r
15
m
16
a
17
n
algo
master
.
io
Step:
Start of algorithm