Community
0
MissingSequenceWrite an algorithm to validate customer input of +1 increment series.
Determine if there’s a missing number, and if so, which one.
At most, one number is missing. The sequence could start from any offset value.
For example, given the in = [1, 2, 4, 5, 6, 7], the return value needs to be 3.
Example2: [1,2,3,4,5] should return null
0
0