Skip to content

Commit 95ecf14

Browse files
committed
daily
1 parent 6d13e44 commit 95ecf14

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

my-submissions/e1304.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)