Question DSA-TREE-0053
MediumWhat is the time complexity of any standard traversal of a binary tree with n nodes?
- A.
O(n log n)
- B.
O(log n)
- C.
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
What is the time complexity of any standard traversal of a binary tree with n nodes?
O(n log n)
O(log n)
Sign up free to see the answer and a step-by-step explanation.
O(n)
O(n²)