Question DSA-TREE-0073
HardInorder: 4 2 5 1 6 3 7. Postorder: 4 5 2 6 7 3 1. What is the preorder?
- A.
4 2 1 5 6 3 7
- B.
1 3 7 6 2 5 4
- C.
1 2 3 4 5 6 7
- D.
1 2 4 5 3 6 7
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Trees question
Inorder: 4 2 5 1 6 3 7. Postorder: 4 5 2 6 7 3 1. What is the preorder?
4 2 1 5 6 3 7
1 3 7 6 2 5 4
1 2 3 4 5 6 7
1 2 4 5 3 6 7
Sign up free to see the answer and a step-by-step explanation.