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

(a) A

(b) E

(c) F

(d) Both E and F

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

I have been asked this question during an interview for a job.

1 Answer

+1 vote
by (672k points)
selected by
Best answer
Right option is (d) Both E and F

Easiest explanation - Descendant node is a node which has a direct path from ancestor node. Since both E and F are connected to B, so Node E and Node F are the descendants of Node B.

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.