Given an array of integers nums, split nums into the minimum number of contiguous subarrays such that the greatest common divisor (GCD) of all elements in each subarray is strictly greater than
Return the minimum number of subarrays required to achieve this split.
Note: A subarray is a contiguous non empty sequence of elements within an array. The greatest common divisor ($ ext{GCD}$) of a sequence of integers is the largest positive integer that evenly divides each integer in the sequence.
Constraints:
nums.length
nums[i]
Given an array of integers nums, split nums into the minimum number of contiguous subarrays such that the greatest common divisor (GCD) of all elements in each subarray is strictly greater than
Return the minimum number of subarrays required to achieve this split.
Note: A subarray is a contiguous non empty sequence of elements within an array. The greatest common divisor ($ ext{GCD}$) of a sequence of integers is the largest positive integer that evenly divides each integer in the sequence.
Constraints:
nums.length
nums[i]