← Paytm questions

Smallest subarray with sum greater than a given value

Filed under Paytm

Given an array of positive integers and a positive integer x, find the minimal length of a contiguous subarray of which the sum is strictly greater than x. If there is no such subarray, 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 Paytm questions

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