Approach: Depth-First Search (DFS) We can treat the grid as an implicit graph, where each land cell represents a node and its adjacent land cells represent neighbors. Instead of building an adjacency ...