find out the array representation of the given max heap if the root node is deleted from it 30,26,22,18
Answers
Answer:
ggt56
ffgyygttrxchjjhuuyjihgfhjkhv
30
Answer:
26
18 22
This is the new array representation of the given max heap if the root node is deleted.
Step-by-step explanation:
To find Array representation if root node is deleted
Max heap 30,26,22,18
30
26 22
18
root node is deleted means 30 is deleted so replace 30(root node by last element 18)
18
26 22
18 is smaller than 26 so swap 18 with 26
26
18 22
This is the new array representation of the given max heap if the root node is deleted.