0 votes 0 votes What will be the last element of the max-heap formed by given element : 4 , 1 ,3, 2, 16, 9, 10, 14, 8, 7 a) 4 b) 6 c) 5 1) 1 According to me, last element is 2. But is in not present in option so answer option (a) , second last element. Programming in C data-structures + – Raj Kumar 7 asked Jul 15, 2018 Raj Kumar 7 195 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Last element is 1 abhishekmehta4u answered Jul 15, 2018 abhishekmehta4u comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes 1 is the last element of the max heap when we max heapify the builted heap by given value. sudhir singh answered Jul 16, 2018 sudhir singh comment Share Follow See all 0 reply Please log in or register to add a comment.