The problem, in one line. Given a grid of land and water, return the size of the biggest island, where land cells joined up, down, left or right are one island. LeetCode 695.
The tell. “Size of the largest group” on a grid. It is Number of Islands with a measurement: the walk that swallows an island can also count what it swallowed.
Included with a plan
This solution is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.