Given an array of
integers, find the shortest length subarray that has a sum greater than or equal to
.
Input Specification
The first line will contain integers,
.
The second line will contain integers
.
Output Specification
Output the shortest length subarray that has a sum greater than or equal to . If there is no subarray, print
-1
.
Sample Input
6 3
2 0 -1 2 -1 2
Sample Output
3
Comments