Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbdf176e

Browse files
refactor 1304
1 parent1e4b7e1 commitbdf176e

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

‎src/main/java/com/fishercoder/solutions/_1304.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
packagecom.fishercoder.solutions;
22

3-
/**
4-
* 1304. Find N Unique Integers Sum up to Zero
5-
*
6-
* Given an integer n, return any array containing n unique integers such that they add up to 0.
7-
*
8-
* Example 1:
9-
* Input: n = 5
10-
* Output: [-7,-1,1,3,4]
11-
* Explanation: These arrays also are accepted [-5,-1,1,2,3] , [-3,-1,2,-2,4].
12-
*
13-
* Example 2:
14-
* Input: n = 3
15-
* Output: [-1,0,1]
16-
*
17-
* Example 3:
18-
* Input: n = 1
19-
* Output: [0]
20-
* */
213
publicclass_1304 {
224
publicstaticclassSolution1 {
235
publicint[]sumZero(intn) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp