Find combination of signs for zero sum
Filed under GoComet
The question
Given an array of integers, find a combination of plus and minus signs that results in a sum of zero. Return the signs as an array or -1 if impossible.
No write-up yet. Related questions below have one.
Related GoComet questions
Collected from public candidate posts and coding forums. Updated Nov 2026.