Search⌘ K
AI Features

Island Perimeter

Island Perimeter gives a rectangular grid of land and water cells containing one connected island without lakes. Return the total length of the island's boundary.

Statement

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