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)
525
0
Do you find this helpful?
1

View all MCQs in

Data Structures (DS)

Discussion

No comments yet

Related MCQs