Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.

---