Question DSA-TREE-0054
MediumWhat extra space does recursive inorder traversal use for a skewed tree of n nodes?
- A.
O(1)
- B.
O(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 extra space does recursive inorder traversal use for a skewed tree of n nodes?
O(1)
O(n)
Sign up free to see the answer and a step-by-step explanation.
O(n²)
O(log n)