1. Computer Science Engineering (CSE)
  2. Data Structures (DS)
  3. Non Linear Data Structures - Trees
  4. What is the complexity of adding an elem...
Q.

What is the complexity of adding an element to the heap.

A. O(log n)
B. O(h)
C. O(log n) & O(h)
D. O(n)
Answer» C. O(log n) & O(h)
View all MCQs in:   Data Structures (DS)

Discussion