LeetCode 695 Max Area of Island - DFS (Med, Java, O(m × n))
Problem Statement
695. Max Area of Island
Given an m x n binary matrix grid, find the maximum area of an island. An island is a group of 1's connected 4-directionally (horizontal or vertical). The area of an island is the count of 1 cells in that i...
huanganni.hashnode.dev4 min read