全排列2

Given a collection of numbers that might contain duplicates, return all possible unique permutations.

Example:

Input: [1,1,2]
Output:
[
  [1,1,2],
  [1,2,1],
  [2,1,1]
]

 

posted @ 2019-03-19 12:29  zzas12345  阅读(183)  评论(0编辑  收藏  举报