[LeetCode] 47. Permutations II
質問する
に答える
コード#コード# from itertools import permutations
class Solution:
def permuteUnique(self, nums: List[int]) -> List[List[int]]:
return list(map(lambda x : list(x), list(set(permutations(nums)))))
Reference
この問題について([LeetCode] 47. Permutations II), 我々は、より多くの情報をここで見つけました
https://velog.io/@tldjfj123/LeetCode-47.-Permutations-II
テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol
from itertools import permutations
class Solution:
def permuteUnique(self, nums: List[int]) -> List[List[int]]:
return list(map(lambda x : list(x), list(set(permutations(nums)))))
Reference
この問題について([LeetCode] 47. Permutations II), 我々は、より多くの情報をここで見つけました https://velog.io/@tldjfj123/LeetCode-47.-Permutations-IIテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol