Ask Question
21 April, 09:27

What is the difference between a minheap and a maxheap?

+1
Answers (1)
  1. 21 April, 11:48
    0
    In the data structure, min heap uses the ascending priority method in which the small element is to be pop first from the heap. It basically define as root node is either equal to or less than to the child node in the heap method.

    On the other hand, max heap use the descending priority method in which the large element pop first from the heap. In the max heap, the value in the root node is either equal to or greater to its child node.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What is the difference between a minheap and a maxheap? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers