Normally, I can solve this question by using backtracking, but what if the memory for the recursion call is not enough? How can we deal with this kind of problem? Thanks.
https://leetcode.com/problems/subsets/