1.

In a leftist heap, the null path length of a null node is defined as?(a) 0(b) 1(c) null(d) -1I'm obligated to ask this question of Heap topic in chapter Heap of Data Structures & Algorithms IThis question was posed to me in an interview for internship.

Answer»

Correct choice is (d) -1

To EXPLAIN: In a LEFTIST heap tree, the null path length of a null NODE with no CHILDREN is defined as -1.



Discussion

No Comment Found

Related InterviewSolutions