Given an array of positive integers nums and a positive integer target, return the minimal length of a contiguous subarray whose sum is ≥ target. If there is no such subarray, return 0.
Input
numstargetOutput: the minimal length, or 0.
2 3 1 2 4 3 7
2
[4,3] has sum 7 with length 2.
1 1 1 1 11
0
Run your code against the sample tests, or Submit to run the full suite.