You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: problems/high-five/README.md
+27-1
Original file line number
Diff line number
Diff line change
@@ -11,12 +11,38 @@
11
11
12
12
## 1086. High Five (Easy)
13
13
14
+
<p>Given a list of scores of different students, return the average score of each student's <strong>top five scores</strong> in<strong> the order of each student's id</strong>.</p>
14
15
16
+
<p>Each entry <code>items[i]</code> has <code>items[i][0]</code> the student's id, and <code>items[i][1]</code> the student's score. The average score is calculated using integer division.</p>
Consider a DFS traversal of the tree. You can keep track of the current path sum from root to this node, and you can also use DFS to return the minimum value of any path from this node to the leaf. This will tell you if this node is insufficient.
0 commit comments