Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
04
:
48
:
40
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. ...