matrix_algorithms/island_count_bfs library

Functions

numIslandsBFS(List<List<String>> grid) int
Counts the number of islands (connected groups of '1's) in a 2D grid using BFS.