You are given an integer array nums and an integer maxC.
A subarray of nums is called stable if the greatest common divisor of all elements in the subarray is strictly greater than nums is the maximum length of a stable subarray in nums.
You may change at most maxC elements of nums to any positive integers.
Return the minimum possible stability factor of nums after performing at most maxC modifications.
Constraints:
nums.length
nums[i]
maxC
You are given an integer array nums and an integer maxC.
A subarray of nums is called stable if the greatest common divisor of all elements in the subarray is strictly greater than nums is the maximum length of a stable subarray in nums.
You may change at most maxC elements of nums to any positive integers.
Return the minimum possible stability factor of nums after performing at most maxC modifications.
Constraints:
nums.length
nums[i]
maxC