Skip to content
#

algorithms-implemented

Here are 393 public repositories matching this topic...

mkiglics
mkiglics commented Oct 7, 2020

Description of the Problem

Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.

Example 1:

Input: grid = [
  ["1","1","1","1","0"],
  ["1","1","0","1","0"],
  ["1","1","0","0

Improve this page

Add a description, image, and links to the algorithms-implemented topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the algorithms-implemented topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.