1.

What is the size of Node B in given K-ary tree?(a) 1(b) 2(c) 3(d) 4This key question is from K-ary Tree topic in division Trees of Data Structures & Algorithms IThe question was asked at a job interview.

Answer»

The CORRECT ANSWER is (a) 1

Best explanation: SIZE of node is defined as the total number of descendants of that node INCLUDING itself. So, size of Node B is 1.



Discussion

No Comment Found

Related InterviewSolutions