Data Structures | Heap | Question 2

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 for explanation.

Quiz of this Question

GATE CS Corner    Company Wise Coding Practice

Recommended Posts:

0 Average Difficulty : 0/5.0
No votes yet.