Heaps - Study Mode

[#151] What is the time complexity of building a heap from an unsorted array?
Correct Answer

(C) O(n)

[#152] How do you find the maximum element in a max-heap?
Correct Answer

(A) The root node contains the maximum element.

[#153] Which operation cannot be directly performed in a d-heap?
Correct Answer

(C) find

[#154] Which of the following is the application of minimum ternary heap?
Correct Answer

(A) Prim's Algorithm

[#155] The amortized time efficiency for performing deletion of a minimum element is?
Correct Answer

(B) O(log N)