Skip to content

Commit 4bc657b

Browse files
refactor 1086
1 parent fa7b74f commit 4bc657b

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
import java.util.PriorityQueue;
77
import java.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
public class _1086 {
3110
public static class Solution1 {
3211
public int[][] highFive(int[][] items) {

0 commit comments

Comments
 (0)