Question DSA-CX-0014
MediumWhat is the space complexity of a recursive function that recurses n levels deep using O(1) memory per call?
- 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
Complexity Analysis question
What is the space complexity of a recursive function that recurses n levels deep using O(1) memory per call?
O(1)
O(n)
Sign up free to see the answer and a step-by-step explanation.
O(n²)
O(log n)