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

Commit4bc657b

Browse files
refactor 1086
1 parentfa7b74f commit4bc657b

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,6 @@
66
importjava.util.PriorityQueue;
77
importjava.util.TreeMap;
88

9-
/**
10-
* 1086. High Five
11-
*
12-
* Given a list of scores of different students, return the average score of each student's top five scores in the order of each student's id.
13-
* Each entry items[i] has items[i][0] the student's id, and items[i][1] the student's score.
14-
* The average score is calculated using integer division.
15-
*
16-
* Example 1:
17-
* Input: [[1,91],[1,92],[2,93],[2,97],[1,60],[2,77],[1,65],[1,87],[1,100],[2,100],[2,76]]
18-
* Output: [[1,87],[2,88]]
19-
* Explanation:
20-
* The average of the student with id = 1 is 87.
21-
* The average of the student with id = 2 is 88.6. But with integer division their average converts to 88.
22-
*
23-
* Note:
24-
* 1 <= items.length <= 1000
25-
* items[i].length == 2
26-
* The IDs of the students is between 1 to 1000
27-
* The score of the students is between 1 to 100
28-
* For each student, there are at least 5 scores
29-
* */
309
publicclass_1086 {
3110
publicstaticclassSolution1 {
3211
publicint[][]highFive(int[][]items) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp