Problem 463 · Easy

Island Perimeter

Find the perimeter of the single island in a grid of land and water cells. The visual walks each land cell, counts its open sides, and removes any side shared with neighboring land.

Open the interactive visualisation