Suppose we are sorting an array of eight integers using heapsort, and we have just finished some heapify (either maxheapify or minheapify) operations. The array now looks like this: 16 14 15 10 12 27 28 How many heapify operations have been performed on root of heap?
1
2
3 or 4
5 or 6
This question is part of this quiz :
Top MCQs on Sorting Algorithms with Answers,Top MCQs on Heap Data Strcuture with Answers,Top MCQs on HeapSort Algorithm with Answers