Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Find the row with the highest score in the kth exam and swap it with the first row.
After fixing the first row, perform the same operation for the rest of the rows, and the matrix's rows will get sorted one by one.