[LeetCode] 47. Permutations II
Python class Solution: def permuteUnique(self, nums: List[int]) -> List[List[int]]: return set(permutations(nums, len(nums)))
Python class Solution: def permuteUnique(self, nums: List[int]) -> List[List[int]]: return set(permutations(nums, len(nums)))
Python class Solution: def removeDuplicates(self, nums: List[int]) -> int: before = 0 for current in range(1, len(nums)): ...
Python class Solution: def permute(self, nums: List[int]) -> List[List[int]]: return list(permutations(nums, len(nums)))
Python class Solution: def threeSumClosest(self, nums: List[int], target: int) -> int: sorted_nums = sorted(nums) answer = sorted_nums...
Python class Solution: def reverse(self, x: int) -> int: if x > 0: answer = int(str(x)[::-1]) else: answer ...