Mental Model
A min heap always keeps the smallest element at the top, so by removing the smallest element k times, we get the kth smallest.
Analogy: Imagine a pile of numbered balls where the smallest ball is always on top. Taking the top ball k times gives you the kth smallest ball.
Min Heap Array Representation:
[ 2, 3, 5, 7, 8, 10 ]
Heap structure:
2
/ \
3 5
/ \ /
7 8 10
ā (root is smallest)