Google News
logo
Data Structures Algorithms - Quiz(MCQ)
In a min-heap_______
A)
parent nodes have values greater than or equal to their childs
B)
parent nodes have values less than or equal to their childs
C)
both statements are true
D)
both statements are wrong

Correct Answer :   parent nodes have values greater than or equal to their childs


Explanation : In a min heap, parents always have lesser or equal values than that of their childs.

Advertisement