JAVA_LeetCode 47_Permutations II 풀이 class Solution { public List permuteUnique(int[] nums) { Arrays.sort(nums); List
list = new ArrayList(); // 사용 여부를 파악하기 위해 논리 배열을 선언해준다. boolean[] bool = new boolean[nums.length]; check(list, new ArrayList(), nums, bool); return list; } public void check(List
list, List temp, int[] nums, boolean[] bool){ if(nums.length == temp.size()) { list.add(new ArrayList(temp)); return; } for(int i = 0; i < nums....
원문 링크 : JAVA_LeetCode 47_Permutations II