题目:
题解:
class Solution:def findDisappearedNumbers(self, nums: List[int]) -> List[int]:n = len(nums)for num in nums:x = (num - 1) % nnums[x] += nret = [i + 1 for i, num in enumerate(nums) if num <= n]return ret
题目:
题解:
class Solution:def findDisappearedNumbers(self, nums: List[int]) -> List[int]:n = len(nums)for num in nums:x = (num - 1) % nnums[x] += nret = [i + 1 for i, num in enumerate(nums) if num <= n]return ret