Consider a min-heap with $6$ distinct elements. How many positions can be taken by $3^{\text{rd}}$ minimum element?
Shaded positions can be occupied by the third-smallest element.
Ans = 5
64.3k questions
77.9k answers
244k comments
80.0k users