Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Repeated Substring Pattern
Bookmark
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 + s
a
b
a
b
a
b
a
b
0
1
2
3
4
5
6
7
s
a
b
a
b
s + s
a
b
a
b
a
b
a
b
0
1
2
3
4
5
6
7
s
b
a
b
a
s + s
a
a
b
a
b
a
b
b
0
1
2
3
4
5
6
7
s
a
b
a
b
s + s
a
b
a
b
a
b
a
b
0
1
2
3
4
5
6
7
s
a
b
a
b
s + s
a
b
a
b
a
b
a
b
0
1
2
3
4
5
6
7
s = block × 2
s
a
b
a
b
s + s
a
b
a
b
a
b
a
b
0
1
2
3
4
5
6
7
s = block × 2
algo
master
.
io
Step:
Start: can "abab" be built by repeating one of its substrings?
0 / 6
Input
True (ab x2)
False
True (abc x2)
True (abaab x2)
Custom
s
=
abab
0 / 6
algo
master
.
io
Step:
Start: can "abab" be built by repeating one of its substrings?