Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ysayaovong/numberofislands
An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.
https://github.com/ysayaovong/numberofislands
Last synced: about 1 month ago
JSON representation
An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.
- Host: GitHub
- URL: https://github.com/ysayaovong/numberofislands
- Owner: YSayaovong
- Created: 2024-08-21T18:11:40.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-21T18:14:08.000Z (4 months ago)
- Last Synced: 2024-08-21T20:33:01.683Z (4 months ago)
- Language: Java
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Number of Islands
This Java program solves the "Number of Islands" problem. An island is defined as a group of connected lands (1's) surrounded by water (0's) in a grid. Connections are made either horizontally or vertically. The program counts the number of distinct islands, assuming all four edges of the grid are surrounded by water.
### Features:
- Efficiently counts the number of islands in a grid.
- Handles both small and large grids.---