Available question text
Given a 2D grid representing a map of land and water cells, count the number of distinct lakes (connected regions of water cells). A lake is defined as a group of horizontally or vertically adjacent water cells.
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
Count Lakes
Reported Jul 31, 2026 · 3 source reports
SENIOR
Source snapshot: Nov 12, 2026
View source