Computer Science and Engineering Heap Question #5767
Single Choice Easy

QWhat is the time complexity of deleting the minimum element from a binary heap of n elements?

ID: #5767 Heap 142 views
Question Info
#5767Q ID
EasyDifficulty
HeapTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A O(n)
  • B O(log n)
  • C O(n log n)
  • D O(1)
Correct Answer

Explanation

Answer: b) O(log n)

Explanation: The time complexity of deleting the minimum element from a binary heap of n elements is O(log n).

Share This Question

Challenge a friend or share with your study group.