439 views
0 votes
0 votes
Consider a complete Binary Tree ‘T’ with key of root node be ‘P’. It is given that the left and right subtree of ‘P’
satisfies minheap
property. What is the time taken to convert the given tree ‘T’ to a max heap ?
a. Ο(log n)
b. Ο(n)
c. Ο(n log n)
d. Ο(n2)

Please log in or register to answer this question.

No related questions found