Kth Largest Element in a Stream — Heap / Priority Queue

Maintain a running ranking as fresh scores come in and, after each, report the score at a fixed rank counted down from the top.

Heap / Priority Queue · Easy

More in Heap / Priority Queue

All algorithm problems