Consider a min heap represented by the array: 2, 5, 7, 10, 15, 18, 20. Now consider that a value 8 is inserted into this heap. After insertion, the new heap is:

1
2, 5, 7, 8, 10, 15, 18, 20
2
2, 5, 7, 8, 15, 18, 20, 10
3
2, 5, 7, 8, 15, 18, 10, 20
4
2, 5, 7, 8, 15, 20, 18, 10

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation