GOOGLE CODING INTERVIEW QUESTION - NUMBER OF ISLANDS (LeetCode)
One of Google's most commonly asked interview questions according to LeetCode.
Google Coding Interviews Number of Islands (LeetCode) and explanation.
This interview question is from LeetCode and commonly asked by the following companies: Google, Facebook, Amazon, Lyft, Uber, LinkedIn, Apple, Bloomberg, Microsoft, Alibaba, and more.
Problem description: 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:
11110
11010
11000
00000
Output: 1
Example 2:
Input:
11000
11000
00100
00011
Output: 3
Support me on Patreon: https://www.patreon.com/KevinNaughtonJr
Follow me on GitHub: https://github.com/kdn251
Follow me on Instagram: https://www.instagram.com/programeme
Видео GOOGLE CODING INTERVIEW QUESTION - NUMBER OF ISLANDS (LeetCode) канала Kevin Naughton Jr.
Google Coding Interviews Number of Islands (LeetCode) and explanation.
This interview question is from LeetCode and commonly asked by the following companies: Google, Facebook, Amazon, Lyft, Uber, LinkedIn, Apple, Bloomberg, Microsoft, Alibaba, and more.
Problem description: 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:
11110
11010
11000
00000
Output: 1
Example 2:
Input:
11000
11000
00100
00011
Output: 3
Support me on Patreon: https://www.patreon.com/KevinNaughtonJr
Follow me on GitHub: https://github.com/kdn251
Follow me on Instagram: https://www.instagram.com/programeme
Видео GOOGLE CODING INTERVIEW QUESTION - NUMBER OF ISLANDS (LeetCode) канала Kevin Naughton Jr.
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Highest Paying Tech Companies for Software Engineers (Salaries Revealed)AMAZON CODING INTERVIEW QUESTION - COIN CHANGE (LeetCode)AMAZON CODING INTERVIEW QUESTION - SPIRAL MATRIXGOOGLE - MAX AREA OF ISLAND (LeetCode)Number of Islands - Breadth First Search (LeetCode)FACEBOOK - WALLS AND GATES (LeetCode)5 Problem Solving Tips for Cracking Coding Interview QuestionsLeetCode 200 - Number of Islands in Python (Graphs)LeetCode 200. Number of Islands [Algorithm + Code Explained ] Graph Traversal SolutionGOOGLE - CONVERT SORTED ARRAY TO BINARY SEARCH TREE (LeetCode)Ep.3: Graphs - LeetCode Problems That Got Me HiredFACEBOOK - FIND THE CELEBRITY (LeetCode)Ep.1: Depth-First Search - LeetCode Problems That Got Me HiredGOOGLE CODING INTERVIEW QUESTION - LETTER COMBINATIONS OF A PHONE NUMBER (LeetCode)AMAZON - LOWEST COMMON ANCESTOR OF A BINARY SEARCH TREE (LeetCode)AMAZON CODING INTERVIEW QUESTION - PARTITION LABELS (LeetCode)GOOGLE - FIND PEAK ELEMENT (LeetCode)Union Find Data Structure - Number of Connected Components in an Undirected Graph (LeetCode)FACEBOOK - VALID PARENTHESES (LeetCode)