Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← 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
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
s
a
b
a
b
algo
master
.
io
Step:
Start: can "abab" be built by repeating one of its substrings?