← Microsoft questions

Number Equal to Sum of Left and Right Subarrays

Filed under Microsoft

Given an array of integers, find an index such that the sum of the elements to the left of that index equals the sum of the elements to the right of that index. Return -1 if no such index exists.

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 Microsoft questions

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