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
What is the usual worst-case time to peek at the minimum of a nonempty binary min-heap?
Answer & explanation
Answer: O(1)
The minimum is stored at the root and can be read directly.