What is the Height of the root node of ternary tree?

Category: QuestionsWhat is the Height of the root node of ternary tree?
Editor">Editor Staff asked 1 month ago

What is the Height of the root node of ternary tree?
 
(a) 1
 
(b) 2
 
(c) 3
 
(d) 0
 
My question is from 1 topic in portion Trees of Data Structures & Algorithms I
 
The question was asked during an internship interview.

1 Answers
Editor">Editor Staff answered 1 month ago

Right choice is (d) 0
 
The best explanation: Height of ternary tree is defined as the length of path from root to deepest node in tree. Therefore, height off root node in ternary tree is 0.