Good day! I saw a backtracking subset-generation algorithm in the link:
https://www.geeksforgeeks.org/backtracking-to-find-all-subsets/
which claims that the space complexity of the program is O(n)
. Yet, from what I've learned, the minimum complexity should be O(2^n)
since it will be the size of our output. Is the given space complexity correct?