The space complexity of a recursive algorithm is mainly due to:

The space complexity of a recursive algorithm is mainly due to:

  1. a) Input size
  2. b) Output size
  3. c) Variables inside loops
  4. d) Function call stack

From the BCS Technical Cadre (CSE) October 2025 – 49th BCS Written (Special) (BPSC) exam, question 72 of 123.

More from this paper