panel of m rows with n bulbs each: 1 means the bulb is on, 0 means it is off. In every row bulbs light up from left to right, so all ones come before all zeros.
Row i is dimmer than row j if it has fewer bulbs on, or, with the same number on, if i < j.
Return the indices of the count dimmest rows, ordered from dimmest to brightest.panel=[[1, 1, 1, 0], [1, 0, 0, 0], [1, 1, 0, 0], [1, 0, 0, 0]], count=3 → [1, 3, 2]
The rows have 3, 1, 2 and 1 lit bulbs. The dimmest are rows 1 and 3 (one each, smaller index first), then row 2.
panel=[[0, 0], [1, 1], [0, 0]], count=2 → [0, 2]
Rows 0 and 2 are completely dark, and row 0 comes first by index.
panel=[[1, 1, 1, 0], [1, 0, 0, 0], [1, 1, 0, 0], [1, 0, 0, 0]], count=3
[1, 3, 2]
Run checks the first 3 tests in your browser. Submit checks all 80 tests on the server, hidden ones included.