Count Connected Land Regions in a Grid
Asked at Oracle · Coding Questions · Difficulty: Medium · Last asked Apr 14, 2026
A map is stored as a grid of land and water cells. Count how many separate landmasses ("islands") the map contains.
Loading the problem…