Available question text
Count how many islands (4-directionally connected 1s) in grid2 are entirely contained within corresponding land cells in grid1 — traverse each island in grid2 (DFS/BFS) and verify every cell is 1 in grid1.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Google
Leetcode 1905. Count Sub Islands
Interview reported: May 4, 2026 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source