Min heap can be extended to max heap with a little effort.
Min heap can be extended to max heap with a little effort.