Problem 2545 · Medium

Sort the Students by Their Kth Score

Sort the rows of a score table by one column, highest score first, by repeatedly taking the best remaining row.

Open the interactive visualisation