The document describes a function that takes an integer array as input and returns the smallest positive integer that is not present in the array. It provides examples where the array is [1, 3, 6, 4, 1, 2] and it should return 5, and where the array is [1, 2, 3] and it should return 4. The function needs to have an efficient algorithm to handle arrays with up to 100,000 integers between -1,000,000 and 1,000,000.
The document describes a function that takes an integer array as input and returns the smallest positive integer that is not present in the array. It provides examples where the array is [1, 3, 6, 4, 1, 2] and it should return 5, and where the array is [1, 2, 3] and it should return 4. The function needs to have an efficient algorithm to handle arrays with up to 100,000 integers between -1,000,000 and 1,000,000.
The document describes a function that takes an integer array as input and returns the smallest positive integer that is not present in the array. It provides examples where the array is [1, 3, 6, 4, 1, 2] and it should return 5, and where the array is [1, 2, 3] and it should return 4. The function needs to have an efficient algorithm to handle arrays with up to 100,000 integers between -1,000,000 and 1,000,000.