+1 vote
in Data Structures & Algorithms I by (110k points)
Can child node be always called Leaf node in the ternary tree?

(a) True

(b) False

Asked question is from Ternary Tree topic in chapter Trees of Data Structures & Algorithms I

The question was posed to me during a job interview.

1 Answer

+1 vote
by (672k points)
selected by
Best answer
Right choice is (b) False

Explanation: Leaf node is any node that does not contain any children. Child node may or may not contain more nodes. Child node will only be called leaf Node if the node has no child node.

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.