Making a large island

0
Remix

In a binary grid you may change at most one water cell to land. Return the size of the largest island you can end up with. Label each island and its size once, then try each water cell against its distinct neighbouring islands.

MetaCodingLast asked Dec 2025
No answer yet. Write the first one; the best answer gets endorsed.