Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
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
0
b
1
a
2
b
3
algo
master
.
io
Step:
Start: Check if "abab" can be formed by repeating a substring
0 / 4
Input
True (ab x2)
False
True (abc x2)
True (abaab x2)
Custom
s
=
abab
0 / 4
s
a
0
b
1
a
2
b
3
algo
master
.
io
Step:
Start: Check if "abab" can be formed by repeating a substring