Mental Model
A min heap keeps the smallest element at the top, so by removing the smallest element k times, we get the kth smallest.
Analogy: Imagine a line of kids holding balloons with numbers. The kid with the smallest number is always at the front. If you ask the first kid to step out k times, the last one who steps out holds the kth smallest number.
Min Heap Array Representation:
[3]
/ \
[5] [8]
/ \
[10] [12]
Array form: [3, 5, 8, 10, 12]
Top is smallest element 3