When poll is active respond at
Send pds to 22333

Consider a binary heap with 0 elements in it. We have a sequence of N numbers that we insert into the heap one at a time. What is the (best) worst case time complexity of building the heap this way?

185
2%
3
O(log N)
3%
6
O(N)
2%
4
O(N + log N)
89%
165
O(N log N)
4%
7
O(N^2)
0%
0
O(2^(log N))
Powered by