Given a set of distinct integers, nums, return all possible subsets (the power set).
Note
The solution set must not contain duplicate subsets.
Example
Input: nums = [1,2,3]
Output:
1 | [ |
Code
1 | public List<List<Integer>> subsets(int[] nums) { |
写BUG的程序猿
Given a set of distinct integers, nums, return all possible subsets (the power set).
The solution set must not contain duplicate subsets.
Input: nums = [1,2,3]
Output:
1 | [ |
1 | public List<List<Integer>> subsets(int[] nums) { |