原地Hash
Data Structures & Algorithms · 3 notes
- First Missing Positivehistorical
Given an unsorted integer array nums, find the smallest positive integer that does not appear in the array.
- Find the Duplicate Numberhistorical
Given n + 1 integers whose values range from 1 to n, find the repeated number.
- Find All Numbers Disappeared in an Arrayhistorical
An array of length n contains values from 1 to n, some once and some twice. Find the values in this range that do not appear in the array.