Problem 215 · Medium

Kth Largest Element in an Array

Maintain a size-k min-heap while scanning numbers; heap root is the kth largest.

Open the interactive visualisation