Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Issue Description
You are given row x col grid representing a map where grid[i][j] = 1 represents land and grid[i][j] = 0 represents water.
Grid cells are connected horizontally/vertically (not diagonally). The grid is completely surrounded by water, and there is exactly one island (i.e., one or more connected land cells).
The island doesn't have "lakes", meaning the water inside isn't connected to the water around the island. One cell is a square with side length 1. The grid is rectangular, width and height don't exceed 100. Determine the perimeter of the island.
Suggested Change
add solution to the aforementioned problem.
Rationale
No response
Urgency
High
Acknowledgements
- I have read the Contributing Guidelines
- I'm a GSSOC'24 contributor
- I have starred the repository
- I have read and followed the Contribution Guidelines
- I have followed the code style guidelines of this project
- I have checked for any existing open issues that my pull request may address
- I have ensured that my changes do not break any existing functionality
- Each contributor is allowed to create a maximum of 4 issues per day. This helps us manage and address issues efficiently
- I have read the resources for guidance listed below
- I have not used AI-generated content (e.g., ChatGPT, other AI tools)
- I have not used content from existing sites (e.g., text, images)
- I have followed all security rules and only shared trusted resources