+1 vote
in Data Structures & Algorithms I by (110k points)
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 Answer

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

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.