Find length of smallest subarray

前端 未结 0 1986
谎友^
谎友^ 2020-11-27 04:36

Find length of smallest subarray whose sum of elements is greater than the given number: Example: Input: 1,2,3,4,5,6,7,8 k=20 Output: 6,7,8

Input: 1,2,3,4,5,6,7,8 k=7

相关标签:
回答
  • 消灭零回复
提交回复
热议问题