Approach hintTry it first, then revealHide
Read row by row, the matrix is one sorted array of length m * n; binary search over that index range, mapping index i to cell (i / n, i % n).
Read row by row, the matrix is one sorted array of length m * n; binary search over that index range, mapping index i to cell (i / n, i % n).