edited by
407 views
0 votes
0 votes

what i did {$2^{h+1}-1=100$} so i found h=6 so max swaps needed would be 6

please check it or tell me if i iam wrong

edited by

Please log in or register to answer this question.

Related questions

3 votes
3 votes
1 answer
1
Bikram asked Oct 4, 2016
502 views
Maximum element in a min-heap represented by an array, can be computed in _____ time$O(n)$$O(\log n)$$O(n \log n)$ but not $O(n)$$O(1)$
3 votes
3 votes
1 answer
2
1 votes
1 votes
1 answer
3
1 votes
1 votes
0 answers
4