Given an array of positive integers, determine the minimal length of a subarray such that the sum is greater than or equal to a given target. Return 0 if no such subarray exists.
Click Run to execute sample tests.