Mental Model
We use a max heap to keep track of the largest elements, removing the largest until we reach the kth largest.
Analogy: Imagine a pile of books stacked by height. You keep removing the tallest book until you find the kth tallest one.
Max Heap Array Representation:
[ 9, 7, 8, 5, 6, 3, 4 ]
Heap structure:
9
/ \
7 8
/ \ / \
5 6 3 4
