195 views
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.

 

 

2 Answers

0 votes
0 votes
1 is the last element of the max heap when we max heapify the builted heap by given value.

Related questions

0 votes
0 votes
2 answers
1
viral8702 asked Sep 21, 2023
285 views
The Total Combinations Possible of Min heap with 8 Distinct elements are ?
0 votes
0 votes
1 answer
2
iamdeepakji asked Jan 27, 2019
278 views
If there is negative edge cycle then dijkstra algorithm will give correct path or not same thing about bellman ford also?Bellman ford always halts or not?
0 votes
0 votes
1 answer
3
iamdeepakji asked Dec 27, 2018
403 views
Please solve this by taking some exampleBack edgecross edgetree edgeThankyou.