Minimum Size Subarray Sum

Try to solve the Minimum Size Subarray Sum problem.

Statement

Given an array of positive integers, nums, and a positive integer, target, find the minimum length of a contiguous subarray whose sum is greater than or equal to the target. If no such subarray is found, return 0.

Constraints:

...

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy