1.

What is the node path length of a node with 0 or 1 child?(a) 1(b) -1(c) 0(d) nullThe query is from Heap in chapter Heap of Data Structures & Algorithms IThis question was addressed to me in an interview for internship.

Answer»

The correct answer is (C) 0

The explanation is: The length of the shortest path from a NODE to a node without TWO children is defined as 0.



Discussion

No Comment Found

Related InterviewSolutions