Available question text
Count the number of 4-directionally connected components of positive cells (islands) whose sum of cell values is divisible by k. The core challenge is to efficiently flood-fill (DFS/BFS/union-find) the grid to compute each island's total and test divisibility under m*n ≤ 1e5.
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
No company association
Leetcode 3619. Count Islands With Total Value Divisible by K
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source