2 votes 2 votes Consider an array with the following elements $$1\;3\;2\;7\;6\;10\;5\;4.$$The minimum number of interchanges required to make it a min-heap is _____ DS go2025-ds-1 numerical-answers binary-heap + – gatecse asked Aug 9, 2020 gatecse 145 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Interchange $7,4$, we get min heap. $\therefore$ Only one interchange required. So, the correct answer is $1.$ Lakshman Bhaiya answered Aug 10, 2020 • edited Aug 18, 2020 by Lakshman Bhaiya Lakshman Bhaiya comment Share Follow See all 0 reply Please log in or register to add a comment.