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

Commiteaac0cb

Browse files
refactor 961
1 parenta8da4ea commiteaac0cb

File tree

1 file changed

+0
-27
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-27
lines changed

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

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,6 @@
33
importjava.util.HashSet;
44
importjava.util.Set;
55

6-
/**
7-
* 961. N-Repeated Element in Size 2N Array
8-
*
9-
* In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times.
10-
*
11-
* Return the element repeated N times.
12-
*
13-
* Example 1:
14-
*
15-
* Input: [1,2,3,3]
16-
* Output: 3
17-
* Example 2:
18-
*
19-
* Input: [2,1,2,5,3,2]
20-
* Output: 2
21-
* Example 3:
22-
*
23-
* Input: [5,1,5,2,5,3,5,4]
24-
* Output: 5
25-
*
26-
*
27-
* Note:
28-
*
29-
* 4 <= A.length <= 10000
30-
* 0 <= A[i] < 10000
31-
* A.length is even
32-
* */
336
publicclass_961 {
347
publicstaticclassSolution1 {
358
publicintrepeatedNTimes(int[]A) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp