From 767471a7378cb4afef4df4851f902e2f8dc0a305 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 1 Aug 2026 05:13:15 -0600 Subject: [PATCH] adding updates --- .../round_1/27_pacific_atlantic_water_flow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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."""