Vidyalelo
Data Structure · Q10

Heaps

Programming · Data Structure · question 10

Q10

How do you find the maximum element in a max-heap?

A.
The root node contains the maximum element.
Answer
B.
The maximum element is always the leftmost leaf.
C.
By performing an inorder traversal.
D.
By searching the entire heap.

Answer: Option A

Solution

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