+1 vote
in Data Structures & Algorithms I by (110k points)
What is the size of Node A?

(a) 1

(b) 2

(c) 3

(d) 4

My question is taken from Ternary Tree topic in section 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)
Right answer is (d) 4

The best explanation: Size of node is defined as the total number of descendants of that node including itself. So, size of Node A is 4.

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.