(int[] nums)
| 4 | class Solution { |
| 5 | |
| 6 | public List<List<Integer>> subsets(int[] nums) { |
| 7 | List<List<Integer>> ans = new ArrayList<>(); |
| 8 | List<Integer> list = new ArrayList<>(); |
| 9 | helper(ans, 0, nums, list); |
| 10 | return ans; |
| 11 | } |
| 12 | |
| 13 | public void helper( |
| 14 | List<List<Integer>> ans, |