Who is descendant of Node C?

Category: QuestionsWho is descendant of Node C?
Editor">Editor Staff asked 5 months ago

Who is descendant of Node C?
 
(a) A
 
(b) E
 
(c) D
 
(d) G
 
This interesting question is from K-ary Tree topic in portion Trees of Data Structures & Algorithms I
 
This question was posed to me in exam.

1 Answers
Editor">Editor Staff answered 5 months ago

Correct option is (d) G
 
Easiest explanation – Descendant node is a node which has a direct path from ancestor node. Since Node G is connected to C, so Node G is the descendant of Node C.


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