+1 vote
in Data Structures & Algorithms I by (88.2k points)
Heap exhibits the property of a binary tree?

(a) True

(b) False

My doubt stems from Heap topic in division Heap of Data Structures & Algorithms I

I have been asked this question at a job interview.

1 Answer

+1 vote
by (672k points)
selected by
 
Best answer
Right choice is (a) True

The explanation is: Yes, because the leaf nodes are present at height h or h-1, which is a property of complete binary tree.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...