InterviewSolution
Saved Bookmarks
| 1. |
Who is descendant of Node B?(a) A(b) E(c) F(d) Both E and FOrigin of the question is Ternary Tree topic in chapter Trees of Data Structures & Algorithms II have been asked this question during an interview for a job. |
|
Answer» RIGHT option is (d) Both E and F Easiest explanation - Descendant node is a node which has a direct PATH from ANCESTOR node. Since both E and F are connected to B, so Node E and Node F are the descendants of Node B. |
|