LeetCode 695 Max Area of Island
Sep 3, 2021 · 1 min read · Solution: we can just use a simple iteration through the grid and look for islands. When we find an island, we can use a recursive helper function (dfs) to sum up all the connected pieces of land and return the total land mass of the island. As we t...
Join discussion