+1 vote
in Data Structures & Algorithms I by (110k points)
Who is the ancestor of Node G?

(a) C

(b) F

(c) H

(d) A

Origin of the question is Ternary Tree in section Trees of Data Structures & Algorithms I

The question was asked in a national level competition.

1 Answer

+1 vote
by (672k points)
selected by
Best answer
The correct choice is (a) C

The best explanation: Ancestor node is a node that comes in between the path from the node to the root. Since Node C comes between node G and root, so Node C is called the ancestor 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.