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)