Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
First Missing Positive
Bookmark
Input
Example 1
Example 2
Example 3
Custom
nums
=
[3, 4, -1, 1]
3
4
-1
1
0
1
2
3
algo
master
.
io
Step:
Start: Place each positive integer in its correct position using cyclic sort
0 / 27
Input
Example 1
Example 2
Example 3
Custom
nums
=
[3, 4, -1, 1]
0 / 27
3
4
-1
1
0
1
2
3
algo
master
.
io
Step:
Start: Place each positive integer in its correct position using cyclic sort