(int[] nums)
| 1 | class Solution { |
| 2 | public List<List<Integer>> permuteUnique(int[] nums) { |
| 3 | Arrays.sort(nums); |
| 4 | List<List<Integer>> res = new ArrayList<>(); |
| 5 | |
| 6 | backtrack(res, nums, new ArrayList<>(), new boolean[nums.length]); |
| 7 | return res; |
| 8 | } |
| 9 | |
| 10 | public void backtrack(List<List<Integer>> res, |
| 11 | int[] nums, |