← Airtel questions

Subarray with sum K

Filed under Airtel · Also reported at Zomentum

The question

Given an array of positive integers, find and print the start and end indices of a contiguous subarray that sums to a target value K in O(n) time.

No write-up yet. Related questions below have one.

Related Airtel questions

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