Computer Science and Engineering Heap Question #5771
Single Choice Easy

QWhat is the time complexity of finding the minimum element in a binary heap of n elements?

ID: #5771 Heap 188 views
Question Info
#5771Q 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: d) O(1)

Explanation: The time complexity of finding the minimum element in a binary heap of n elements is O(1).

Share This Question

Challenge a friend or share with your study group.