InterviewSolution
Saved Bookmarks
| 1. |
What is the depth of Node F in the given K-ary tree?(a) 0(b) 1(c) 2(d) 3My doubt is from K-ary tree topic in division Trees of Data Structures & Algorithms II had been asked this question in class test. |
|
Answer» RIGHT choice is (c) 2 For explanation: Depth of the NODE is the LENGTH of the path from ROOT to the node. Here, length of path from root to Node F is 2. So depth of Node F is 2. |
|