Find All Numbers Disappeared in an Array : leetcode solution in python

class Solution:
    def findDisappearedNumbers(self, nums: List[int]) -> List[int]:
            length_nums = len(nums)
            all_numbers_set = set(range(1, length_nums + 1))

            for num in nums:
                if num in all_numbers_set:

            return list(all_numbers_set)


Leave a Comment

Your email address will not be published. Required fields are marked *

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock