1.

In heap sort, after deleting the last minimum element, the array will contain elements in?(a) increasing sorting order(b) decreasing sorting order(c) tree inorder(d) tree preorderThis question was posed to me in exam.I would like to ask this question from Heapsort topic in chapter Sorting of Data Structures & Algorithms II

Answer»

The correct option is (b) decreasing SORTING order

Explanation: By logic, after DELETING minimum element, the HEAP will contain elements in decreasing sorting order. We can CHANGE this by altering the ORDERING property.



Discussion

No Comment Found

Related InterviewSolutions