An integer array arr was originally an arithmetic progression of numbers, but exactly one integer was removed. The first and last elements of the original progression were never removed.
Return the missing integer.
Constraints:
arr.length
arr[i]
The given array is guaranteed to be a valid array.
An integer array arr was originally an arithmetic progression of numbers, but exactly one integer was removed. The first and last elements of the original progression were never removed.
Return the missing integer.
Constraints:
arr.length
arr[i]
The given array is guaranteed to be a valid array.