Question
A programmer needs repeatedly retrieving the smallest element, and the chosen structure has the property that the minimum element is stored at the root. Which choice fits best?
Select an option. Your answer will be checked instantly.
Correct Answer: D. Min-Heap
Explanation:
Min-Heap fits because it supports repeatedly retrieving the smallest element and the minimum element is stored at the root.
Both clues point to this choice.
Leave a Reply