Skip to content

Commit 40ad1e9

Browse files
refactor 1133
1 parent 477317d commit 40ad1e9

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/main/java/com/fishercoder/solutions/_1133.java

-22
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,6 @@
22

33
import java.util.TreeMap;
44

5-
/**
6-
* 1133. Largest Unique Number
7-
*
8-
* Given an array of integers A, return the largest integer that only occurs once.
9-
* If no integer occurs once, return -1.
10-
*
11-
* Example 1:
12-
* Input: [5,7,3,9,4,9,8,3,1]
13-
* Output: 8
14-
* Explanation:
15-
* The maximum integer in the array is 9 but it is repeated. The number 8 occurs only once, so it's the answer.
16-
*
17-
* Example 2:
18-
* Input: [9,9,8,8]
19-
* Output: -1
20-
* Explanation:
21-
* There is no number that occurs only once.
22-
*
23-
* Note:
24-
* 1 <= A.length <= 2000
25-
* 0 <= A[i] <= 1000
26-
* */
275
public class _1133 {
286
public static class Solution1 {
297
public int largestUniqueNumber(int[] A) {

0 commit comments

Comments
 (0)