Question discussion

Which of the following is a max-heap?

359868Medium DSSSB TGT Computer Science 0 replies 0 views
0

Which of the following is a max-heap?

  • AOption A
  • BOption B
  • COption C
  • DOption D
Correct answer: A

Explanation

A max-heap is a complete binary tree in which every parent is at least as large as its children. Only the tree in option A satisfies both conditions.

Discussion 0

Nobody has replied yet. Start the discussion!