Question bank › Two Pointers
Dsa Two Pointers Easy

Balanced Split

You have an array of integers representing weights. You want to split this array into two parts such that the sum of weights in both parts is equal. Write a function that determines if such a split is possible and returns true or false. Input Format: - A single line containing space-separated integers. Output Format: - A boolean value, 'true' or 'false'. Example: Input: 1 1 2 2 Output: true

Key concepts

two_pointersarrayprefix_sum

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.