Skip to content

Commit eaac0cb

Browse files
refactor 961
1 parent a8da4ea commit eaac0cb

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

-27
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,6 @@
33
import java.util.HashSet;
44
import java.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
public class _961 {
347
public static class Solution1 {
358
public int repeatedNTimes(int[] A) {

0 commit comments

Comments
 (0)