Vidyalelo
Data Structure · Q24

Heaps

Programming · Data Structure · question 24

Q24

What happens if you increase the value of a node in a max-heap?

A.
The heap property is restored by moving the node down.
Answer
B.
The node is removed, and a new node is added.
C.
The heap property is restored by moving the node up.
D.
The heap becomes unbalanced.

Answer: Option A

Solution

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