← ALL NOTES
Array

3195. Find the Minimum Area to Cover All Ones I

Given a binary matrix grid, find the minimum area of an axis-aligned rectangle that covers all cells with value 1. Find the min and max row and column among all the ones — those are the bounding…

Loading…