What is the result of a post-order traversal on the following binary tree: A, B, C, D?

Practice Questions

1 question
Q1
What is the result of a post-order traversal on the following binary tree: A, B, C, D?
  1. A B C D
  2. D C B A
  3. B D C A
  4. C B D A

Questions & Step-by-step Solutions

1 item
Q
Q: What is the result of a post-order traversal on the following binary tree: A, B, C, D?
Solution: In post-order traversal, you visit the left subtree, then the right subtree, and finally the root. Thus, for the given tree, the result is D C B A.
Steps: 0

Related Questions

Soulshift Feedback ×

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

Not likely Very likely