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 80+ hands-on prep courses.