1 votes 1 votes It should be 5 according to me.Pleas explain if they are correct. DS made-easy-test-series data-structures binary-heap + – Lucky sunda asked Jan 8, 2017 recategorized Mar 6, 2019 by adeebafatima1 Lucky sunda 596 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply air1 commented Jan 8, 2017 reply Follow Share Delete root. Put 196 as root. Compare it with its two children 120 and 130. Swap 120 and 196. Compare with 140 and 150. Swap 196 and 140. Compare with 180 and 190. Swap 196 and 180. 6 comparisons. Anything wrong with this? 1 votes 1 votes Lucky sunda commented Jan 9, 2017 reply Follow Share arre..I did a mistake in solving..First time I replaced 130, and then 170. So 5 were coming. Yes u r correct. Thanks :) 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes ans is 5 only. shayal chhabra answered Jan 8, 2017 shayal chhabra comment Share Follow See all 11 Comments See all 11 11 Comments reply Show 8 previous comments Lucky sunda commented Jan 9, 2017 reply Follow Share yes..it is correct according to me. 0 votes 0 votes saurabh rai commented Jan 9, 2017 reply Follow Share srry i think u r thinking 5 as corrrect ans i m explaining abt why 5 is nt correct just a conflict.:) 0 votes 0 votes Lucky sunda commented Jan 9, 2017 reply Follow Share oh..Actually someone cleared it above.. thanks for ur effort :) 0 votes 0 votes Please log in or register to add a comment.