Every row of a 0/1 matrix is sorted. Which row holds the most 1s — and can you beat one binary search per row?
Every row of a 0/1 matrix is sorted. Which row holds the most 1s — and can you beat one binary search per row?
Opens with the full question.