# What is the depth of Node G in the given ternary tree?

Category: QuestionsWhat is the depth of Node G in the given ternary tree?
Editor">Editor Staff asked 5 months ago

What is the depth of Node G in the given ternary tree?

(a) 0

(b) 1

(c) 2

(d) 3

The origin of the question is Ternary tree topic in chapter Trees of Data Structures & Algorithms I

I got this question in quiz.

Editor">Editor Staff answered 5 months ago

Correct option is (c) 2

Best explanation: Depth of the node is the length of the path from root to the node. Here, length of path from root to Node G is 2. So depth of Node G is 2.

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