1.

Which node is the Leaf node in the following ternary tree?(a) A(b) B(c) D(d) GMy enquiry is from 1 in portion Trees of Data Structures & Algorithms IThis question was addressed to me in an interview.

Answer»

The correct ANSWER is (d) G

The best I can explain: Leaf node is any node that does not contain any CHILDREN. Since Node G is the node without any children, So G is CALLED Leaf Node. While Node A is root node and Node B, Node C, Node D is PARENT node of their children.



Discussion

No Comment Found

Related InterviewSolutions