Skip to content

Commit 74579b5

Browse files
refactor 1207
1 parent 9e90e95 commit 74579b5

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

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

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,6 @@
66
import java.util.Map;
77
import java.util.Set;
88

9-
/**
10-
* 1207. Unique Number of Occurrences
11-
*
12-
* Given an array of integers arr,
13-
* write a function that returns true if and only if the number of occurrences of each value in the array is unique.
14-
*
15-
* Example 1:
16-
* Input: arr = [1,2,2,1,1,3]
17-
* Output: true
18-
* Explanation: The value 1 has 3 occurrences, 2 has 2 and 3 has 1. No two values have the same number of occurrences.
19-
*
20-
* Example 2:
21-
* Input: arr = [1,2]
22-
* Output: false
23-
*
24-
* Example 3:
25-
* Input: arr = [-3,0,1,-3,1,1,1,-3,10,0]
26-
* Output: true
27-
*
28-
* Constraints:
29-
* 1 <= arr.length <= 1000
30-
* -1000 <= arr[i] <= 1000
31-
* */
329
public class _1207 {
3310
public static class Solution1 {
3411
public boolean uniqueOccurrences(int[] arr) {

0 commit comments

Comments
 (0)