Search⌘ K
AI Features

Solution: Find N Unique Integers Sum up to Zero

C# solution for the Find N Unique Integers Sum up to Zero problem using the Math and Geometry pattern.

Statement

Given an integer n, construct and return an array of n distinct integers such that the sum of all elements is equal to 00. If multiple valid arrays exist, you may return any one of them.

Constraints:

  • 11 \leq ...