In a min-heap, the root node always contains:
Correct answer
C. The smallest element
16 views
C. The smallest element
16 views
The min-heap property makes every parent ≤ its children, so the minimum sits at the root, available in O(1). This makes heaps ideal for priority queues.
Asked in: GATE CS, NTS, Technical Interviews
Not sure why the answer is C? Ask here and get an explanation.