[LeetCode] 47. Permutations II
Python
class Solution:
def permuteUnique(self, nums: List[int]) -> List[List[int]]:
return set(permutations(nums, len(nums)))
class Solution:
def permuteUnique(self, nums: List[int]) -> List[List[int]]:
return set(permutations(nums, len(nums)))
댓글남기기