← Questions

Making a large island

0
MetaCodingLast asked Dec 2025

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.

Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding