- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
Daily Coding Challenge #3
Question:
Given an array of integers, find the first missing positive integer inlinear time and constant space. In other words, find the lowest positiveinteger that does not exist in the array. The array can contain duplicatesand negative numbers as well.For example:The input [1, 2, 0] should give 3.You can modify the input array in-place.
Reference:
dailycodingproblem
Comments
Post a Comment