Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
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: Check how many times "abcd" must be repeated so "cdabcdab" is a substring.
0 / 15
Input
Standard (3)
Simple (2)
No match (-1)
Extra copy (4)
Custom
a
=
abcd
,
b
=
cdabcdab
0 / 15
a
a
b
c
d
b
c
d
a
b
c
d
a
b
algo
master
.
io
Step:
Start: Check how many times "abcd" must be repeated so "cdabcdab" is a substring.