[LeetCode] 448. Find All Numbers Disappeared in an Array
Python
class Solution:
def findDisappearedNumbers(self, nums: List[int]) -> List[int]:
return set(range(1, len(nums) + 1)) - set(nums)
class Solution:
def findDisappearedNumbers(self, nums: List[int]) -> List[int]:
return set(range(1, len(nums) + 1)) - set(nums)
댓글남기기