diff --git a/src/my_project/interviews/google_top_exercises/round_1/27_pacific_atlantic_water_flow.py b/src/my_project/interviews/google_top_exercises/round_1/27_pacific_atlantic_water_flow.py index 648ee804..ab329f14 100644 --- a/src/my_project/interviews/google_top_exercises/round_1/27_pacific_atlantic_water_flow.py +++ b/src/my_project/interviews/google_top_exercises/round_1/27_pacific_atlantic_water_flow.py @@ -39,7 +39,8 @@ def dfs(r: int, c: int, visited: set, prev_height: int): dfs(r, 0, pacific, heights[r][0]) dfs(r, cols - 1, atlantic, heights[r][cols - 1]) - return [[r, c] for r, c in pacific & atlantic] + return [[r, c] for r, c in pacific & atlantic] + def pacificAtlantic_BFS(self, heights: List[List[int]]) -> List[List[int]]: """Same idea with multi-source BFS - avoids Python's recursion limit."""