Divide array into two parts with minimized sum difference
Filed under Snowflake
The question
Divide an array into two parts such that the difference between their sums is minimized and their element counts differ by at most 1.
No write-up yet. Related questions below have one.
Related Snowflake questions
Collected from public candidate posts and coding forums. Updated Nov 2026.