Gazette

Vol. 39 Sunday, 12 October 2025
Vol. 39 12 Oct 2025

The article shows how to count islands in a grid using depth-first search. It defines neighbors, a recursive visit that marks connected land, and a loop that scans all cells. The Rust and Haskell versions both track visited cells to avoid double-counting.