Problems / Heap / Priority Queue / Kth Largest Element in an Array
#67 Medium Time O(n) Space O(1) Animated

Kth Largest Element in an Array

Find the kth largest element in an unsorted array.

LeetCode ↗
Approach: Min-Heap
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps