Binary Trees and Traversals - Implementations in Python - Higher Difficulty Problems

Download Q&A
Q. In a binary tree, what does it mean if a node has both left and right children?
  • A. It is a leaf node
  • B. It is a full node
  • C. It is a complete node
  • D. It is a balanced node
Q. What is the result of a postorder traversal on the binary tree with root 1, left child 2, and right child 3?
  • A. 1, 2, 3
  • B. 2, 3, 1
  • C. 3, 2, 1
  • D. 1, 3, 2
Q. What is the space complexity of the recursive implementation of inorder traversal?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
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