#695

Max Area of Island

medium· Graphsruns: 0

Given a binary matrix grid where 1 represents land and 0 represents water, return the maximum area of an island in grid. The area of an island is the number of cells with value 1 in the island. An island is a 4-directionally connected group of 1s. If there is no island, return 0.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.