What is the size of the given ternary tree?

Category: QuestionsWhat is the size of the given ternary tree?
Editor">Editor Staff asked 5 months ago

What is the size of the given ternary tree?
 
(a) 3
 
(b) 2
 
(c) 6
 
(d) 4
 
I’m obligated to ask this question of Ternary Tree topic in chapter Trees of Data Structures & Algorithms I
 
This question was addressed to me by my college director while I was bunking the class.

1 Answers
Editor">Editor Staff answered 5 months ago

The correct choice is (c) 6
 
Explanation: Size of the ternary tree is defined as the total number of nodes present in the tree. Since there are total of 6 nodes in the ternary tree. So the size of the ternary tree is 6.


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: 40702