Advertisements
Advertisements
प्रश्न
Answer the following questions from the diagram of a Binary Tree given below:

- State the siblings of the nodes C and E. Also, state the predecessor node(s) and successor node(s) of node B. [2]
- Write the in-order traversal of the left sub tree and pre-order traversal of the right sub tree. [2]
लघु उत्तर
Advertisements
उत्तर
- The sibling of node C is B, while the sibling of node E is D. The predecessor of B is D, and its successor is E.
- In order traversal of the Left subtree results in: DBGE.
Preorder traversal of right subtree results in: CFHI
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
