Tap here to switch tabs
Problem
Submissions

Problem: Find Missing Elements

med
30 min
Try to solve the Find Missing Elements problem.

Statement

You are given an integer array nums.

Find all integers between the minimum and maximum values in nums (inclusive) that are missing from the array.

Return a list of these missing integers sorted in ascending order.

Constraints:

  • 2≤2 \leq nums.length ≤100\leq 100

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

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Find Missing Elements

med
30 min
Try to solve the Find Missing Elements problem.

Statement

You are given an integer array nums.

Find all integers between the minimum and maximum values in nums (inclusive) that are missing from the array.

Return a list of these missing integers sorted in ascending order.

Constraints:

  • 2≤2 \leq nums.length ≤100\leq 100

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