+1 vote
in Data Structures & Algorithms I by (110k points)
What is the size of Node B in given K-ary tree?

(a) 1

(b) 2

(c) 3

(d) 4

This key question is from K-ary Tree topic in division Trees of Data Structures & Algorithms I

The question was asked at a job interview.

1 Answer

+1 vote
by (672k points)
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.

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.