leetcode
leetcode copied to clipboard
Create 0047-permutations-ii.java
Given a collection of numbers, nums, that might contain duplicates, return all possible unique permutations in any order.
Input: nums = [1,1,2] Output: [[1,1,2], [1,2,1], [2,1,1]]
Input: nums = [2,2,1,1] Output: [[1,1,2,2],[1,2,1,2],[1,2,2,1],[2,1,1,2],[2,1,2,1],[2,2,1,1]]
Could you provide your submission URL, thanks. And please do follow the Contribution Guidelines.