1.

Answer the following from the diagram of a Binary Tree given below:(i) Name the leaf nodes of the right sub-tree.(ii) Write postorder traversal of the left subtree of node B including itself. (iii) State the level number of nodes R and M when the root is at level 0.(iv) Name the internal nodes of the tree.

Answer»

(i) Nodes P and E are the leaf nodes of the right sub-tree. 

(ii) R, N, M, C, B is the required post-order traversal. 

(iii) 2 

(iv) C, F, M, H are the internal nodes.



Discussion

No Comment Found

Related InterviewSolutions