LC: 1228. Missing Number In Arithmetic Progression
Input: arr = [5,7,11,13]
Output: 9
Explanation: The previous array was [5,7,9,11,13].Input: arr = [15,13,12]
Output: 14
Explanation: The previous array was [15,14,13,12].Last updated
Input: arr = [5,7,11,13]
Output: 9
Explanation: The previous array was [5,7,9,11,13].Input: arr = [15,13,12]
Output: 14
Explanation: The previous array was [15,14,13,12].Last updated
class Solution {
public int missingNumber(int[] arr) {
}
}