+1 vote
in Data Structures & Algorithms I by (88.2k points)
What happens if the null path length is not updated?

(a) error occurs

(b) all null path lengths will be 0

(c) all null path lengths will be -1

(d) all null path lengths will be 1

My query is from Heap topic in division Heap of Data Structures & Algorithms I

I had been asked this question in an online interview.

1 Answer

+1 vote
by (672k points)
selected by
 
Best answer
Right choice is (b) all null path lengths will be 0

Explanation: While performing insertion via merge operation in a leftist heap, if the null path length is not updated, all null path lengths will be 0.

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

...