Maximum Greyness of a Pixel Grid
Asked at Amazon · Coding Questions · Difficulty: Medium
In an `n x m` grid of `'0'`/`'1'` rows, the greyness of cell `(i,j)` is `(black in row i + black in col j) - (white in row i + white in col j)`, where black = `'1'`, white = `'0'` (the cell counts in both its row and column). Return the maximum greyness over all cells.
Loading the problem…