- Source : Link
- Author : Han
- Date : 2022-01-06
Problems
Given an array nums of n integers where nums[i] is in the range [1, n], return an array of all the integers in the range [1, n] that do not appear in nums.
Example 1
1 | |
Example 2
1 | |
Solution
1 | |
Given an array nums of n integers where nums[i] is in the range [1, n], return an array of all the integers in the range [1, n] that do not appear in nums.
Example 1
1 | |
Example 2
1 | |
1 | |