What is the complexity of adding an element to a heap?
A) O(1)
B) O(n2)
C) O(log (n) )
D) O(n log (n) )
Correct Answer:
Verified
Q85: If a min-heap has 14 nodes, what
Q86: If a min-heap has 1024 nodes, what
Q87: What is the complexity of removing an
Q88: Which of the following statements about a
Q89: When we map a min-heap with n
Q91: Consider the following binary search tree:
Q92: A min-heap is a binary tree structure
Q93: When we map a min-heap with n
Q94: Which of the following statements about removing
Q95: Which of the following statements about inserting
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents