Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Third Maximum Number
Bookmark
Sorting
Track Three Maximums
Input
Input 1
Input 2
With Duplicates
Custom
nums
=
[3, 2, 1]
3
2
1
0
1
2
count
0
answer
?
3
2
1
0
1
2
count
0
answer
?
1
2
3
0
1
2
count
0
answer
?
1
2
3
1st
0
1
2
count
1
answer
?
1
2
3
1st
i
0
1
2
count
1
answer
?
1
2
3
2nd
1st
i
0
1
2
count
2
answer
?
1
2
3
2nd
1st
i
0
1
2
count
2
answer
?
1
2
3
3rd
2nd
1st
i
0
1
2
count
3
answer
?
1
2
3
3rd
2nd
1st
0
1
2
count
3
answer
1
algo
master
.
io
Step:
Start of algorithm
0 / 7
Input
Input 1
Input 2
With Duplicates
Custom
nums
=
[3, 2, 1]
0 / 7
algo
master
.
io
Step:
Start of algorithm