최근 포스트

[LeetCode] 47. Permutations II

최대 1 분 소요

Python class Solution: def permuteUnique(self, nums: List[int]) -> List[List[int]]: return set(permutations(nums, len(nums)))

[LeetCode] 46. Permutations

최대 1 분 소요

Python class Solution: def permute(self, nums: List[int]) -> List[List[int]]: return list(permutations(nums, len(nums)))

[LeetCode] 16. 3Sum Closest

최대 1 분 소요

Python class Solution: def threeSumClosest(self, nums: List[int], target: int) -> int: sorted_nums = sorted(nums) answer = sorted_nums...

[LeetCode] 7. Reverse Integer

최대 1 분 소요

Python class Solution: def reverse(self, x: int) -> int: if x > 0: answer = int(str(x)[::-1]) else: answer ...