You are given a nums and an integer target.
Consider an infinite array infinite_nums formed by repeating nums infinitely many times.
Return the minimum length of a subarray in infinite_nums whose elements sum to target. If no such subarray exists, return
Constraints:
nums.length
nums[i]
target
You are given a nums and an integer target.
Consider an infinite array infinite_nums formed by repeating nums infinitely many times.
Return the minimum length of a subarray in infinite_nums whose elements sum to target. If no such subarray exists, return
Constraints:
nums.length
nums[i]
target