arrow_back Back to Challenges

#695 Max Area of Island

Medium Acceptance 0%
description

Problem Description

You are given an `m x n` binary matrix `grid`. An island is a group of 1's connected 4-directionally. Return the maximum area of an island in `grid`. If there is no island, return 0.

checklist Constraints

See problem description for detailed constraints.

science Examples

Case #1

In: # See problem description for input format
Out: # Expected output

Mastery Tags

Arrays Graphs Matrix

Hiring Companies

Meta Salesforce
code

Integrated IDE

code_blocks
Coding
psychology
Aptitude