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...
Auf dieser Seite können Sie das Online-Video 1905. Count Sub Islands | Leetcode | Daily Problem | Graph | DFS | Medium | Java Solution mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Code Monger 28 August 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 33 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!