Time Complexity of building a heap from heapify

We think that time complexity of buildHeap is o(nlogn) which wrong.

Time complexity of buildHeap is o(n) How ? Let us see

PROOF => 



 

Comments

Popular posts from this blog

3 MAPPING TECHNIQUES

VIRTUAL MEMORY

ADJACENT MATRIX