Problem 827 · Hard

Making A Large Island

Turn at most one water cell into land to make the largest possible island. The visual labels each existing island and shows the combined size when a water cell joins its neighbours.

Open the interactive visualisation