Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Repeated String Match
Bookmark
Input
Standard (3)
Simple (2)
No match (-1)
Extra copy (4)
Custom
a
=
abcd
,
b
=
cdabcdab
a
a
b
c
d
b
c
d
a
b
c
d
a
b
algo
master
.
io
Step:
Start: how many times must "abcd" repeat so that "cdabcdab" appears inside it?
0 / 19
Input
Standard (3)
Simple (2)
No match (-1)
Extra copy (4)
Custom
a
=
abcd
,
b
=
cdabcdab
0 / 19
a
a
b
c
d
b
c
d
a
b
c
d
a
b
algo
master
.
io
Step:
Start: how many times must "abcd" repeat so that "cdabcdab" appears inside it?