Minimum Length Subarray With Sum at Least K
Asked at DocuSign · Coding Questions · Difficulty: Medium
Given an array of positive integers `nums` of length `n` and a positive integer `k`, return the length of the shortest contiguous subarray whose sum is greater than or equal to `k`.
Loading the problem…