Skip to content
Related Articles

Related Articles

Data Structures | Heap | Question 2

View Discussion
Improve Article
Save Article
  • Last Updated : 28 Jun, 2021
View Discussion
Improve Article
Save Article

A max-heap is a heap where the value of each parent is greater than or equal to the values of its children. Which of the following is a max-heap? (GATE CS 2011)

(A) A
(B) B
(C) C
(D) D


Answer: (B)

Explanation: See https://www.geeksforgeeks.org/data-structures-and-algorithms-set-26/ for explanation.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!