2022
02-11
02-11
C++实现LeetCode(209.最短子数组之和)
[LeetCode]209.MinimumSizeSubarraySum最短子数组之和Givenanarrayof n positiveintegersandapositiveinteger s,findtheminimallengthofa contiguous subarrayofwhichthesum≥ s.Ifthereisn'tone,return0instead.Example: Input:s=7,nums=[2,3,1,2,4,3]Output:2Explanation:thesubarray[4,3]hastheminimallengthundertheproblemconstraint....
继续阅读 >