We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d13e44 commit 95ecf14Copy full SHA for 95ecf14
my-submissions/e1304.py
@@ -0,0 +1,9 @@
1
+class Solution:
2
+ def sumZero(self, n: int) -> List[int]:
3
+ output = []
4
+ if n % 2 :
5
+ output.append(0)
6
+ for i in range(1, n // 2 + 1) :
7
+ output.append(i)
8
+ output.append(-i)
9
+ return output
0 commit comments