Which node is the root node of the following ternary tree?

Category: QuestionsWhich node is the root node of the following ternary tree?
Editor">Editor Staff asked 5 months ago

Which node is the root node of the following ternary tree?
 
(a) A
 
(b) B
 
(c) C
 
(d) D
 
Query is from 1 topic in portion Trees of Data Structures & Algorithms I
 
I have been asked this question in an interview.

1 Answers
Editor">Editor Staff answered 5 months ago

Correct choice is (a) A
 
To explain: Node A is called the root node of the above ternary tree while the Node B, Node C, Node D are called Leaf node.


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