Mental Model
A min heap always keeps the smallest element at the top, so we can remove the smallest elements one by one until we reach the kth smallest.
Analogy: Imagine a line of kids waiting to get ice cream, where the shortest kid is always at the front. To find the kth shortest kid, you let the first kid get ice cream and leave, then the next shortest moves to the front, and so on until you reach the kth kid.
Min Heap Array: [2, 3, 5, 7, 8, 10]
Heap structure:
2
/ \
3 5
/ \ /
7 8 10
ā (root is smallest)