1.

What is the size of Node A?(a) 1(b) 2(c) 3(d) 4My question is taken from Ternary Tree topic in section Trees of Data Structures & Algorithms II have been asked this question during an interview for a job.

Answer» 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.


Discussion

No Comment Found

Related InterviewSolutions