Difference Between Min Heap And Max Heap
A Heap is a special Tree-based data structure in which the tree is a complete binary tree. There are two types of heaps: Min-heap and Max-heap. A min-heap is used to access the minimum element in the heap whereas the Max-heap is used when accessing the maximum element in the heap. In a Min-Heap the key … Read more