How many extra nodes are there in Full ternary tree than a complete ternary tree?

Category: QuestionsHow many extra nodes are there in Full ternary tree than a complete ternary tree?
Editor">Editor Staff asked 5 months ago

How many extra nodes are there in Full ternary tree than a complete ternary tree?
 
(a) 1
 
(b) 2
 
(c) 3
 
(d) Both have same number of nodes
 
This interesting question is from Ternary Tree in division Trees of Data Structures & Algorithms I
 
I had been asked this question in an online interview.

1 Answers
Editor">Editor Staff answered 5 months ago

Right answer is (d) Both have same number of nodes
 
The explanation is: Every Full ternary tree is also a complete ternary tree. Therefore, both have same number of nodes.


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