Count the connected groups of land cells in a grid — then count only the large ones, or group them by height.
Count the connected groups of land cells in a grid — then count only the large ones, or group them by height.
The discussion opens with the full question.