Answer the following questions from the binary tree.
State the level numbers of the nodes N and R if the root is at 0 (zero) level.
Computer Science20171 markBinary tree
Answer
Answer
AI
Level of N = 1 and level of R = 3.
Root M is at level 0; N is a child of M (level 1); R is a child of Z, which is a child of G, a child of M (M 0, G 1, Z 2, R 3).