July 4th Sale
Limited Time Deal: Unlock all premium questions for over 40% off
$10.42$6.25
10
:
09
:
27
:
41
Back to Dashboard
Island Statistics
Medium
You are given an m x n binary grid where '1' is land and '0' is water. For each island (a connected group of land cells using horizontal and vertical adjacency), compute two values:
- Area: the number of land cells in the island. ...