Problem 1992 · Medium

Find All Groups of Farmland

Find the rectangular groups of farmland in a binary grid and report each group's corners. The visual scans the grid and marks each group's top-left and bottom-right corners.

Open the interactive visualisation