Learn
Practice
Newsletter
Resources
Resume
New
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Kth Largest Element in an Array
Bookmark
Input
Example 1
Example 2
Example 3
Custom
nums
=
[3, 2, 1, 5, 6, 4]
,
k
=
2
nums
3
2
1
5
6
4
min_heap (size: 0 ≤ 2)
algo
master
.
io
Step:
Start: Find kth largest element using min-heap
0 / 17
Input
Example 1
Example 2
Example 3
Custom
nums
=
[3, 2, 1, 5, 6, 4]
,
k
=
2
0 / 17
nums
3
2
1
5
6
4
min_heap (size: 0 ≤ 2)
algo
master
.
io
Step:
Start: Find kth largest element using min-heap