What is the space complexity of a recursive function that uses O(n) space for it

Practice Questions

Q1
What is the space complexity of a recursive function that uses O(n) space for its call stack?
  1. O(1)
  2. O(n)
  3. O(n^2)
  4. O(log n)

Questions & Step-by-Step Solutions

What is the space complexity of a recursive function that uses O(n) space for its call stack?
No concepts available.
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely