Search
⌘K

Leetcode 1992. Find All Groups of Farmland

Given an m x n binary matrix containing disjoint, axis-aligned rectangular blocks of 1s, return for each block the coordinates [r1,c1,r2,c2] of its top-left and bottom-right corners. Rectangles are non-adjacent (no four-directional touching) and m,n ≤ 300.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.