Skip to content

Commit

Permalink
Create permutation-nos.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iMagesh authored Sep 21, 2022
1 parent 22713d2 commit b357c09
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions problems/permutation-nos.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Given a collection of numbers, nums, that might contain duplicates, return all possible unique permutations in any order.



Example 1:
```
Input: nums = [1,1,2]
Output:
[[1,1,2],
[1,2,1],
[2,1,1]]
```
Example 2:
```
Input: nums = [1,2,3]
Output: [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
```

Constraints:
```
1 <= nums.length <= 8
-10 <= nums[i] <= 10
```

0 comments on commit b357c09

Please sign in to comment.