Min heap is a binary heap where the parent nodes have a smaller key than the children. A max heap is the opposite: parent nodes have a larger key than the children.
Min heap is a binary heap where the parent nodes have a smaller key than the children. A max heap is the opposite: parent nodes have a larger key than the children.