You are given an integer array nums. You may replace at most nums with any integer.
Return the maximum length of a contiguous arithmetic subarray that can be formed after at most
Note: A sequence is arithmetic if the difference between consecutive elements is constant. A subarray is a contiguous sequence of elements within an array.
Constraints:
nums.length
nums[i]
You are given an integer array nums. You may replace at most nums with any integer.
Return the maximum length of a contiguous arithmetic subarray that can be formed after at most
Note: A sequence is arithmetic if the difference between consecutive elements is constant. A subarray is a contiguous sequence of elements within an array.
Constraints:
nums.length
nums[i]