Solution: The K Weakest Rows in a Matrix
Solution: The K Weakest Rows in a Matrix ranks binary-matrix rows by soldier count, with civilians following soldiers, breaks ties by row index, and returns the k weakest row indexes.
We'll cover the following...
We'll cover the following...
Statement
You are given an