We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 728a525 commit 8657508Copy full SHA for 8657508
README.md
@@ -49,6 +49,8 @@ Step 2. Add the dependency
49
50
<summary>展开查看</summary>
51
52
+https://leetcode.cn/problems/sort-the-students-by-their-kth-score
53
+
54
https://leetcode.cn/problems/complement-of-base-10-integer
55
56
https://leetcode.cn/problems/number-complement
sort-the-students-by-their-kth-score/index.ts
@@ -0,0 +1,6 @@
1
+export default function sortTheStudents(
2
+ score: number[][],
3
+ k: number,
4
+): number[][] {
5
+ return score.sort((a, b) => b[k] - a[k]);
6
+}
0 commit comments