Skip to content

Commit 1e18958

Browse files
authored
Update minimum_size_subarray_sum.py
1 parent b67b6f7 commit 1e18958

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

dynamic_programming/minimum_size_subarray_sum.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33

44
def minimum_subarray_sum(target: int, numbers: list[int]) -> int:
55
"""
6-
Returns the length of the shortest contiguous subarray
7-
in a list of numbers whose sum is at least target.
8-
9-
Reference: https://stackoverflow.com/questions/8269916/what-is-sliding-window-algorithm-examples
6+
Return the length of the shortest contiguous subarray in a list of numbers whose sum
7+
is at least target. Reference: https://stackoverflow.com/questions/8269916
108
119
>>> minimum_subarray_sum(7, [2, 3, 1, 2, 4, 3])
1210
2

0 commit comments

Comments
 (0)