Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Reorganize String
Bookmark
Input
Example 1
Example 2 (Impossible)
Example 3
Custom
s
=
aab
input
a
a
b
algo
master
.
io
Step:
Reorganize the string so no two adjacent characters match
0 / 25
Input
Example 1
Example 2 (Impossible)
Example 3
Custom
s
=
aab
0 / 25
input
a
a
b
algo
master
.
io
Step:
Reorganize the string so no two adjacent characters match