Tap here to switch tabs
Problem
Submissions

Problem: Find All Numbers Disappeared in an Array

Find All Numbers Disappeared in an Array gives an array whose values range from one to its length. Return every number in that range that is missing from the array, even when values repeat.

Statement

Given an array, nums, of nn integers where nums[i] is in the range [1,n][1, n], return an array of all the integers in the range [1,n][1, n] that doesn’t appear in nums.

Constraints:

  • n=n = nums.length

  • 1≤n≤1031 \leq n \leq 10^3

  • 1≤1 \leq nums[i] ≤n\leq n

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Find All Numbers Disappeared in an Array

Find All Numbers Disappeared in an Array gives an array whose values range from one to its length. Return every number in that range that is missing from the array, even when values repeat.

Statement

Given an array, nums, of nn integers where nums[i] is in the range [1,n][1, n], return an array of all the integers in the range [1,n][1, n] that doesn’t appear in nums.

Constraints:

  • n=n = nums.length

  • 1≤n≤1031 \leq n \leq 10^3

  • 1≤1 \leq nums[i] ≤n\leq n