Given an integer array, write a funcktion which returns the minimum pozitive integer that is not in the list.
Example:
Input: [3, 4, -1, 1] —> Output: 2
Input: [1, 2, 0] —>Output: 3
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
Given an integer array, write a funcktion which returns the minimum pozitive integer that is not in the list.
Example:
Input: [3, 4, -1, 1] —> Output: 2
Input: [1, 2, 0] —>Output: 3