Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
isaiahliu committed Dec 20, 2024
1 parent 15ca3ea commit 5aa97ea
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/kotlin/p25xx/Problem2545.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package p25xx

import util.expect

fun main() {
class Solution {
fun sortTheStudents(score: Array<IntArray>, k: Int): Array<IntArray> {
return score.also { it.sortByDescending { it[k] } }
}
}

expect {
Solution().sortTheStudents(
arrayOf(), 1
)
}
}

0 comments on commit 5aa97ea

Please sign in to comment.