2 votes 2 votes A binary tree is said to have heap property if the elements along any path : from leaf to root are non-increasing from leaf to root are non-decreasing from root to leaf are non-decreasing from root to leaf are non-increasing DS ugcnetcse-june2009-paper2 + – rishu_darkshadow asked Sep 21, 2017 • edited Jun 23, 2020 by soujanyareddy13 rishu_darkshadow 805 views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments Uzumaki Naruto commented Jan 3, 2017 reply Follow Share If it is Max Heap by default, then Option D is correct. Because every node i in the Max Heap must satisfy the property i >= right_child && i >=left_child 1 votes 1 votes Sanjay Sharma commented Jan 3, 2017 reply Follow Share what is wrong with option B 0 votes 0 votes Nithish commented Jan 3, 2017 reply Follow Share All the options satisfy doesn't? Since Max/min both are heap properties. 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes options (B) and (D) are correct. just take any example! Sanyam Lakhanpal answered Sep 24, 2017 Sanyam Lakhanpal comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes It is depend upon min/max heap but by default we consider max heap. So ans: D rishu_darkshadow answered Sep 26, 2017 rishu_darkshadow comment Share Follow See all 0 reply Please log in or register to add a comment.