Master Mathematics.

Programming · Data Structures · Problem 3

Rebuilding a full binary tree from traversals

Consider the tree traversals (i) Preorder, (ii) Inorder, (iii) Postorder on a full binary tree. Which of the following options is/are sufficient to uniquely reconstruct the full binary tree? (More than one option may be correct.)

  1. (A) (i) and (ii)
  2. (B) (ii) and (iii)
  3. (C) (i) and (iii)
  4. (D) (ii) only

Source: GATE DA