1905. Count Sub Islands | Leetcode | Daily Problem | Graph | DFS | Medium | Java Solution

Publicado em: 28 Agosto 2024
no canal de: Code Monger
33
0

You are given two m x n binary matrices grid1 and grid2 containing only 0's (representing water) and 1's (representing land). An island is a group of 1's connected 4-directionally (horizontal or vertical). Any cells outside of the grid are considered water cells.

An island in grid2 is considered a sub-island if there is an island in grid1 that contains all the cells that make up this island in grid2.

Return the number of islands in grid2 that are considered sub-islands.

https://leetcode.com/problems/count-s...


Nesta página do site você pode assistir ao vídeo on-line 1905. Count Sub Islands | Leetcode | Daily Problem | Graph | DFS | Medium | Java Solution duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Code Monger 28 Agosto 2024, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 33 vezes e gostou 0 espectadores. Boa visualização!