AppleCodingMembers
Number of Islands
Members only
Given a 2D grid grid where '1' represents land and '0' represents water, count and return the number of islands.
SWE
medium
grid
dfs
bfs
Frequency
Single report
Last asked
2026-08-22
Stage
phone-screen
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
