Number of Islands

medium
Unit 8 · Graphs I0/2 to milestone

Given a 2D grid of "1" (land) and "0" (water), return the number of islands. Islands connect horizontally and vertically.

#graphs#bfs#dfs2 visible + 1 hidden tests
solution.py · Python 3.13
Loading editor…
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Number of Islands · TechGradify