โ† Cisco questions
CodingReported in a candidate post, Oct 2025

Smallest subarray with sum greater than X

Filed under Cisco

Given an array of positive integers and a target value X, find the length of the smallest contiguous subarray whose sum is strictly greater than X. If no such subarray exists, return 0.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Cisco questions

Collected from public candidate posts and coding forums. Updated Nov 2026.