Back to course home
0% completed
Vote For New Content
Time Complexity of alternative approach would be O(N log(N))
Utkarsh Gupta
Aug 15, 2023
Time Complexity of alternative approach would be O(N log(N)). Insertion takes O(logN) time. In the alternate approach we are first inserting all the numbers into the heap which would result in O(Nlog(n)).
0
0
Comments
Comments
On this page