Question bank › Math
Dsa Math Easy

Balanced Sum

Given a list of integers, determine if there exists an index such that the sum of the integers on the left of that index is equal to the sum of the integers on the right. Input Format: A single line containing space-separated integers (1 <= len(array) <= 1000, -1000 <= array[i] <= 1000). Output Format: 'YES' if such an index exists, otherwise 'NO'. Example: Input: 1 2 3 3 Output: YES (The index is 2, where left sum is 3 and right sum is also 3)

Key concepts

mathprefix sumbalance

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.