Mental Model
A min heap always keeps the smallest item on top, while a max heap keeps the largest item on top. This helps quickly find the smallest or largest value.
Analogy: Think of a min heap like a line where the shortest person is always at the front, and a max heap like a line where the tallest person is always at the front.
Min Heap:
[1]
/ \
[3] [5]
/ \
[7] [9]
Max Heap:
[9]
/ \
[5] [3]
/ \
[1] [2]