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 4 weeks 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 4 weeks 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.