Binary Trees and Traversals - Higher Difficulty Problems

Download Q&A
Q. If a binary tree has n nodes, what is the maximum number of leaf nodes it can have?
  • A. n
  • B. n/2
  • C. n/3
  • D. n/2 + 1
Q. In a binary tree, if the in-order and post-order traversals are given, how can you reconstruct the tree?
  • A. Using only in-order
  • B. Using only post-order
  • C. Using both in-order and post-order
  • D. Using pre-order and in-order
Q. In a binary tree, if the in-order traversal yields the sequence [D, B, E, A, F, C], what is the pre-order traversal?
  • A. [A, B, D, E, C, F]
  • B. [A, B, E, D, C, F]
  • C. [A, C, B, D, E, F]
  • D. [A, B, D, C, E, F]
Showing 1 to 3 of 3 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely