1 votes 1 votes How to solve such a problem? DS made-easy-test-series data-structures binary-heap programming-in-c array + – Kalpataru Bose asked Dec 31, 2017 edited Mar 5, 2019 by Aditi Singh Kalpataru Bose 564 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply pranab ray commented Dec 31, 2017 reply Follow Share bulid max heap 89 19 40 17 12 10 2 5 7 11 6 9 70 90 (2,90) and (10,70) not support max heap properties interchange it 89 19 40 17 12 70 90 5 7 11 6 9 10 2 after that (40,90) and (90,89) also we have to interchange to get max heap so 4 swap required 90 19 89 17 12 70 40 5 7 11 6 9 10 2 3 votes 3 votes Kalpataru Bose commented Dec 31, 2017 reply Follow Share Thanks a lot! 0 votes 0 votes Please log in or register to add a comment.