find n unique integers sum up to zero

Solutions on MaxInterview for find n unique integers sum up to zero by the best coders in the world

showing results for - "find n unique integers sum up to zero"
Jerald
18 Jan 2018
1Input: n = 5
2Output: [-7,-1,1,3,4]
3Explanation: These arrays also are accepted [-5,-1,1,2,3] , [-3,-1,2,-2,4].
4