Problem 703 · Easy

Kth Largest Element in a Stream

Keep only the k largest values; the smallest of them is the kth largest.

Open the interactive visualisation