Vidyalelo
Data Structure · Q77

Heaps

Programming · Data Structure · question 77

Q77

What will be the position of 5, when a max heap is constructed on the input elements 5, 70, 45, 7, 12, 15, 13, 65, 30, 25?

A.
5 will be at root
B.
5 will be at last level
Answer
C.
5 will be at second level
D.
5 can be anywhere in heap

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board