- Time : O(nlogn+2n+2n∗n)
- Space : O(n)
c++
1 | void helper(vector<vector<int>>& res, vector<int>& A, vector<int>& now, int p) { |