> For the complete documentation index, see [llms.txt](https://chiragjain.gitbook.io/neetcode/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chiragjain.gitbook.io/neetcode/448-find-all-numbers-disappeared-in-an-array/code.md).

# CODE

```python
class Solution:
    def findDisappearedNumbers(self, nums: List[int]) -> List[int]:
        # Mark indexes pointed by numbers as negative
        for num in nums:
            if nums[abs(num) - 1] > 0:
                nums[abs(num) - 1] *= -1
        result = []
        # The indexes that have not been marked are missing
        for idx in range(len(nums)):
            if nums[idx] > 0:
                result.append(idx + 1)
        return result
                
        
```
