Загрузка страницы

LeetCode 200. Number of Islands [Algorithm + Code Explained ] Graph Traversal Solution

One of the most frequently asked coding interview questions on Graph traversal and 2 Dimension Array in companies like Google, Facebook, Amazon, LinkedIn, Microsoft, Uber, Apple, Adobe etc.

LeetCode : Number of Islands

Question 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:

Input:
11110
11010
11000
00000

Output: 1

Connect with me on LinkedIn at: https://www.linkedin.com/in/jayati-tiwari/

Видео LeetCode 200. Number of Islands [Algorithm + Code Explained ] Graph Traversal Solution канала jayati tiwari
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
22 марта 2020 г. 13:58:52
00:14:53
Яндекс.Метрика