weakest-rows-ignores-sorted-row-property

Status: IN

The k-weakest-rows solution uses `sum(row)` to count soldiers, ignoring the constraint that 1s always precede 0s — a property that would allow O(log n) binary search per row instead of O(n) summation.

Source: entries/2026/06/06/the-k-weakest-rows-in-a-matrix-solution.md

JSON