PRACTICE / UNDERSTAND / REPEAT

Data Structures & Algorithms practice question

Practice heaps with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

1 questionAnswers explainedFree · no login

Try this question

Heaps · MCQQuestion link ↗

What is the time complexity of bottom-up heap construction from an unsorted array?

Choose one answer
Answer & explanation

Answer: O(n)

Most nodes are near leaves and require little repair, making bottom-up heapification linear.