Question
Easy

Let QSPTRU and PQSRTU are in-order traversal and pre-order traversal respectively for a given binary tree T. What will be the post-order traversal T?

1
SQUTRP
2
QSUTRP
3
SQTURP
4
QSUTPR
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Data Structures (Through C++)
Topic: Data Structure Concepts
Correct Answer
Option C
Explanation

The correct option is (3): The process of determining the post-order traversal (Left, Right, Node) from the given in-order (Left, Node, Right) and pre-order (Node, Left, Right) traversals involves a recursive breakdown of the binary tree structure. The pre-order traversal (PQSRTU) immediately identifies the root of the entire tree: P. We then use this root to divide the in-order traversal (QSPTRU) into its Left and Right subtrees. All nodes to…Read More