Search⌘ K
AI Features

Island Perimeter

Island Perimeter gives a rectangular grid of land and water containing one connected island without lakes. Calculate the island's total boundary length, where each cell side is one unit.

Statement

You are given a grid with dimensions row x col, where each cell represents either ...