मराठी

Answer the following questions from the diagram of a Binary Tree given below: a. Write the pre-order traversal of the above tree structure. - Computer Science (Theory)

Advertisements
Advertisements

प्रश्न

Answer the following questions from the diagram of a Binary Tree given below:

  1. Write the pre-order traversal of the above tree structure.
  2. Name the parent of the nodes D and B. 
  3. State the level of nodes E anf F when the root is at level 0.
थोडक्यात उत्तर

उत्तर

  1. Preorder Traversal : A->F->D->G->B->H->E
  2. D->(Parent)F , B->(Parent)A
  3. Level of E-3, Level of F-1
shaalaa.com
Recursive Data Structures - Single Linked List (Algorithm and Programming), Binary Trees, Tree Traversals (Conceptual)
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2022-2023 (March) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×