Kth Largest Element in a Stream
EasyLeetCodeHeap / Priority Queue
Approach hintTry it first, then revealHide
Keep a min-heap that holds only the k largest values seen so far; after each insertion pop while its size exceeds k, and the top is the current answer.