Kth Largest Element in a Stream — Interactive Visualizer

Maintain a size-k min-heap across streamed adds so the root is always the current kth largest.