Python 263ms

  • 0
    class Solution(object):
        def findDisappearedNumbers(self, nums):
            :type nums: List[int]
            :rtype: List[int]
            ck_list = [0] * len(nums)
            out = []
            for item in nums:
                ck_list[item-1] = item
            for i in range(len(nums)):
                if ck_list[i] == 0:
            return out

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.