[LeetCode] 46. Permutations
Python
class Solution:
def permute(self, nums: List[int]) -> List[List[int]]:
return list(permutations(nums, len(nums)))
class Solution:
def permute(self, nums: List[int]) -> List[List[int]]:
return list(permutations(nums, len(nums)))
댓글남기기