Problems / Graphs / Number of Islands
#80 Medium Time O(m·n) Space O(m·n) Animated

Number of Islands

Count number of islands in a 2D grid.

LeetCode ↗
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps