leetcode icon indicating copy to clipboard operation
leetcode copied to clipboard

Create 0047-permutations-ii.java

Open sumit16sharma opened this issue 1 year ago • 1 comments

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]]

sumit16sharma avatar Apr 18 '23 14:04 sumit16sharma

Could you provide your submission URL, thanks. And please do follow the Contribution Guidelines.

a93a avatar May 06 '23 12:05 a93a