Hi guys,
the book states that the space complexity of the recursive solution is O(2^n) even if we just want to print the subsets
. In my opinion it is O(n), since the stack has maximum length of n and all function arguments are re-used across recursive calls.
Could you explain please?