1.

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 1My query is from Heap topic in division Heap of Data Structures & Algorithms II had been asked this question in an online interview.

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.


Discussion

No Comment Found

Related InterviewSolutions