Finding the first missing positive integer
Given an array of numbers, find the first missing positive number. The array may contain both positive, negative numbers in any order. For example, consider the following input/outputs. Input: [8, -5, 0, 1, 4, 3]Output: 2Input: [4, 3, 1, 5, 2]Output: 6Input: [-3, -6, 0, 2, 5, 6]Output: 1 One simple algorithm is to…