Question: What will be the position of 5 , when a max heap is constructed on the input elements 7 0 , 4 5 , 7

What will be the position of 5, when a max heap is constructed on the input elements 70,45,7,12,5,13,65,30,25? Assume Root is at Level 0
O a.5 will be at root
Ob.5 will be at second level (Level 2)
Oc.5 can be anywhere in heap
Od.5 will be at last level (Level 3)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!