Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Longest Nice Substring
Bookmark
Input
Standard
Two halves
Simple nice
Custom
s
=
YazaAay
STRING
best =
""
Y
0
a
1
z
2
a
3
A
4
a
5
y
6
algo
master
.
io
Step:
Find the longest nice substring of "YazaAay"
0 / 25
Input
Standard
Two halves
Simple nice
Custom
s
=
YazaAay
0 / 25
STRING
best =
""
Y
0
a
1
z
2
a
3
A
4
a
5
y
6
algo
master
.
io
Step:
Find the longest nice substring of "YazaAay"