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?
A B C D
D C B A
B D C A
C B D A
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.
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.