Question DSA-TREE-0003
EasyIn which traversal is the root visited first?
- A.
None of them
- B.
Inorder
- C.
Show answer and explanation
Answer: D
Preorder: root, left, right. Inorder: left, root, right. Postorder: left, right, root.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Trees question
In which traversal is the root visited first?
None of them
Inorder
Answer: D
Preorder: root, left, right. Inorder: left, root, right. Postorder: left, right, root.
Postorder
Preorder