You are given a nums of length n.
A split at index i, where i n i n i nums[0] through nums[i] and the product of nums[i + 1] through nums[n - 1] is equal to
Return the smallest index i that forms a valid split, or
Note: Two integers are coprime if their greatest common divisor is equal to
.
Constraints:
n == nums.length
n
nums[i]
You are given a nums of length n.
A split at index i, where i n i n i nums[0] through nums[i] and the product of nums[i + 1] through nums[n - 1] is equal to
Return the smallest index i that forms a valid split, or
Note: Two integers are coprime if their greatest common divisor is equal to
.
Constraints:
n == nums.length
n
nums[i]