Length of the Shortest Subarray With Sum at Least a Target
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Other
Overview: Find the length of the shortest contiguous subarray of positive integers whose sum is at least a target, or return 0 when none exists. It tests the sliding window technique on positive arrays and the reasoning behind why a two-pointer scan runs in linear time.