educative.io

Time complexity of buildHeao

43%20AM
Hence, the time complexity of building a heap is O(n)
So why is it O(nlogn) in the questions?