Search posts, tags, users, and pages
Given a 2D grid map of ''1''s (land) and ''0''s (water), count the number of islands where an island is surrounded by water and formed by connecting adjacent lands horizontally or vertically.
tracelit
@tracelit
Markdown supported · ⌘↵ to post
No responses yet.