![Mcqmate logo](https://mcqmate.com/images/logos/logo-black.png)
![Mcqmate logo](https://mcqmate.com/images/logos/logo-white.png)
McqMate
Q. |
An array consists of n elements. We want to create a heap using the elements. The time complexity of building a heap will be in order of |
A. | O(n*n*logn) |
B. | O(n*logn) |
C. | O(n*n) |
D. | O(n *logn *logn) |
Answer» B. O(n*logn) |
View all MCQs in
Data Structures (DS)No comments yet