In a 2D grid of?0s and?1s, we change at most one?0< /code>?to a?1.
After, what is the size of the largest island??(An island is a 4-directionally connected group of? 1s).
Example 1:
In a 2D grid of?0s and?1s, we change at most one?0< /code>?to a?1.
After, what is the size of the largest island??(An island is a 4-directionally connected group of? 1s).
Example 1: