Binary Trees and Traversals - Implementations in Python - Problem Set

Download Q&A
Q. What is the output of the following in-order traversal on the binary tree: 1 (root), 2 (left child), 3 (right child)?
  • A. 1, 2, 3
  • B. 2, 1, 3
  • C. 3, 1, 2
  • D. 1, 3, 2
Q. What is the result of a post-order traversal on a binary tree with nodes 1 (root), 2 (left), 3 (right)?
  • A. 1, 2, 3
  • B. 2, 3, 1
  • C. 3, 2, 1
  • D. 1, 3, 2
Showing 1 to 2 of 2 (1 Pages)
Soulshift Feedback ×

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

Not likely Very likely