You are given an integer array nums.
A split of nums into contiguous subarrays is valid if the greatest common divisor (
Return the minimum number of subarrays needed to form a valid split. If no valid split exists, return
Constraints:
nums.length
nums[i]
You are given an integer array nums.
A split of nums into contiguous subarrays is valid if the greatest common divisor (
Return the minimum number of subarrays needed to form a valid split. If no valid split exists, return
Constraints:
nums.length
nums[i]