---
title: "Discussion on \"Permutations II — LeetCode #47\" | Hashnode"
description: "Discussion on \"Permutations II — LeetCode #47\". Given a collection of numbers, nums, that might contain duplicates, return all possible unique permutations in any order*.*\nExample 1:\nInput: nums = [1,1,2]\nOutput:\n[[1,1,2],\n [1,2,1],\n [2,1,1]]\n\nExample 2:\nInput: nums = [1,2,3]\nOutput: [[1,2,3],[1,3..."
url: "https://hashnode.com/posts/permutations-ii-leetcode-47/63a972202a15d3518f3cb3c3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Permutations II — LeetCode #47](https://normanaranez.hashnode.dev/permutations-ii-leetcode-47?utm_source=hashnode&utm_medium=feed)

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

Dec 26, 2022 · 7 min read · normanaranez.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#python](https://hashnode.com/tag/python)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#php](https://hashnode.com/tag/php)

## Written by

[Norman Aranez](https://hashnode.com/@Cody123)

@Cody123

  
[View profile](https://hashnode.com/@Cody123)

Helping you navigate the world of technology with clarity and precision.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
