Get Maximum Greyness
Amazon coding interview question: Given an n×m grid of 0/1 pixels, define a cell’s grayness as the difference between counts of black and white pixels in its row and column, counting the cell in both. Find the maximum grayness across all cells. This problem is an Amazon interview question focused on grid-based image data and is a common interview question.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
