Leetcode 2679. Sum in a Matrix
Repeatedly remove each row's largest remaining element and add the maximum of those removed to your score until the matrix is empty; return the final score. A common approach is to sort each row and sum the column-wise maxima across the sorted rows.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.