468 views
0 votes
0 votes
The number of ways 1,2,3,4,5 can be inserted into binary heap such that the resultant binary heap is max heap

1 Answer

0 votes
0 votes
fIrst th eheap should be constructed afer that we have check whether it is max heap or not by examining the root value and it requires 3 times to swap root element to make it a max heap

Related questions

1 votes
1 votes
0 answers
3
codingo1234 asked Nov 20, 2018
1,289 views
Consider a binary min heap given below containing integer in [1, 15]. The maximum number of node movement on 5 successive removal of element are ________.