Problems / Heap / Priority Queue / Kth Largest Element in a Stream
#64 Easy Time O(n log k) Space O(k) Animated

Kth Largest Element in a Stream

Design a stream where you can find the kth largest element.

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

Steps