Coding
Heaps
Medium
Streaming kth Largest Element
You need the kth largest element while streaming n values and k is small. What data structure naturally supports O(n log k) processing?
Quant interview-style problem · QS-XNA006
Question 8 of 27
You need the kth largest element while streaming n values and k is small. What data structure naturally supports O(n log k) processing?
Think first. Use hints deliberately. Study the reasoning only when you need it.