Question DSA-TREE-0051
MediumWhich traversal is used to delete (free) all nodes of a tree safely?
- A.
Inorder
- B.
Postorder
- C.
Level order from the root
- D.
Preorder
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 is used to delete (free) all nodes of a tree safely?
Inorder
Postorder
Level order from the root
Preorder
Sign up free to see the answer and a step-by-step explanation.