862. Shortest Subarray with Sum at Least K
Return thelengthof the shortest, non-empty, contiguoussubarray ofAwith sum at leastK.
If there is no non-empty subarray with sum at leastK, return-1.
Example 1:
Input: A = [1], K = 1
Ou...
原创
2018-08-18 09:40:03 ·
218 阅读 ·
0 评论