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

Commit74579b5

Browse files
refactor 1207
1 parent9e90e95 commit74579b5

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
importjava.util.Map;
77
importjava.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
publicclass_1207 {
3310
publicstaticclassSolution1 {
3411
publicbooleanuniqueOccurrences(int[]arr) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp