CodeMosa

Master LeetCode Patterns

Back
Priority Queue (Heap)
Question 1 of 128% Complete
Medium
To find the kth largest element in a stream, what's the most efficient approach?
Need a hint?
Think about maintaining a fixed-size collection