Statement▼
Given an array of positive integers, nums, and a positive integer, target, find the minimum length of a contiguous subarray whose sum is greater than or equal to the target. If no such subarray is found, return 0.
Constraints:
- 1 ≤
target≤ 104 - 1 ≤
nums.length≤ 103 - 1 ≤
nums[i]≤ 103