← Amazon questions

Subarray with 0 sum

Filed under Amazon · Also reported at Barracuda Networks, Scientific Games, ZopSmart

Given an array of integers, determine if there is a contiguous subarray (of size at least one) that has a sum equal to 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 Amazon questions

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