Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Next Permutation
Bookmark
Input
Input 1
Descending
Input 3
Custom
nums
=
[1, 2, 3]
1
2
3
i
0
1
2
1
find pivot
2
find successor
3
swap
4
reverse suffix
algo
master
.
io
Step:
Start of algorithm
0 / 6
Input
Input 1
Descending
Input 3
Custom
nums
=
[1, 2, 3]
0 / 6
1
2
3
i
0
1
2
1
find pivot
2
find successor
3
swap
4
reverse suffix
algo
master
.
io
Step:
Start of algorithm