educative.io
Time complexity of buildHeao
Courses
heap-interview-questions__heaps__data-structures-for-coding-interviews-in-java
,
data-structures-for-coding-interviews-in-java__coderust
Udit
July 27, 2020, 2:24pm
#1
Hence, the time complexity of building a heap is O(n)
So why is it O(nlogn) in the questions?