Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Repeated Substring Pattern
Bookmark
Brute Force
Concatenation
KMP
Input
True (ab x2)
False
True (abc x2)
True (abaab x2)
Custom
s
=
abab
s
a
b
a
b
s
a
b
a
b
s
a
b
a
b
s
b
a
b
a
built
0
1
2
3
s
b
a
b
a
built
a
a
a
a
0
1
2
3
s
a
b
a
b
built
a
a
a
a
0
1
2
3
s
a
b
a
b
built
0
1
2
3
s
a
b
a
b
built
a
b
a
b
0
1
2
3
s
a
b
a
b
built
a
b
a
b
0
1
2
3
s
a
b
a
b
built
a
b
a
b
0
1
2
3
s = block × 2
s
a
b
a
b
built
a
b
a
b
0
1
2
3
s = block × 2
algo
master
.
io
Step:
Start: can "abab" be built by repeating one of its substrings?
0 / 9
Input
True (ab x2)
False
True (abc x2)
True (abaab x2)
Custom
s
=
abab
0 / 9
algo
master
.
io
Step:
Start: can "abab" be built by repeating one of its substrings?