Search
⌘K

Leetcode 2545. Sort the Students by Their Kth Score

Given an m×n matrix where each row is a student's exam scores, reorder the rows by the k-th column in descending order and return the sorted matrix. All scores are distinct, so no tie-breaking is required.

Asked at:

Apple


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Early December, 2024

Apple

Mid-level

Sort CSV data numerically by the second column and output the sorted result

Comments

Your account is free and you can post anonymously if you choose.