What is the size of Node B in given K-ary tree?

Category: QuestionsWhat is the size of Node B in given K-ary tree?
Editor">Editor Staff asked 5 months ago

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 Answers
Editor">Editor Staff answered 5 months ago

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.


Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17
Articles: 40701