57. Max Area of Island

grid contains 1 (land) and 0 (water). Return the area (number of cells) of the largest island, using 4-directional connectivity. Return 0 if there is no land.

Example 1

Input: grid = [[0,1,1],[1,1,0],[0,0,1]]
Output: 4

Example 2

Input: grid = [[0,0]]
Output: 0
Hint 1

Same as Number of Islands, but the flood fill returns how many cells it visited.

GraphDFSMatrix