The K Weakest Rows in a Matrix
Try to solve The K Weakest Rows in a Matrix problem.
We'll cover the following
Statement
You are given an
A row
The number of soldiers in row
is less than the number of soldiers in row . Both rows have the same number of soldiers and
.
You have to return the indexes of the
Constraints:
matrix.length
matrix[i].length
matrix[i][j]
is eitheror .
Examples
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.