I am trying to answer two questions. Can some one check my answer and let me know if its correct or not?
Question 1: Which locations in a binary min-heap of n elements could possibly contain the third-smallest element?
Answer 1: So I know this is a tree where lowest number is at top, so 3rd smallest element is in the 3rd row.
Question 2: Which locations in a binary min-heap of n elements could possibly contain the largest element?
Answer 2: The smallest number is at top of tree, so the largest has to in the last row.
For 1, the second row could contain the second and third smallest. For 2, is your heap the same height everywhere? In the first example, could 2 have children and 3 not?