Question DSA-TREE-0039
EasyWhich traversal should be used to delete every node of a tree safely (children before their parent)?
- A.
Inorder
- B.
Level order
- C.
Preorder
- D.
Postorder
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
Which traversal should be used to delete every node of a tree safely (children before their parent)?
Inorder
Level order
Preorder
Postorder
Sign up free to see the answer and a step-by-step explanation.