Skip to content

Commit f5c6502

Browse files
committed
Update 0417. 太平洋大西洋水流问题.md
1 parent 65b89c5 commit f5c6502

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Solutions/0417. 太平洋大西洋水流问题.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
## 题目大意
77

8+
9+
810
给定一个 `m * n` 大小的二维非负整数矩阵 `heights` 来表示一片大陆上各个单元格的高度。`heights[i][j]` 表示第 `i` 行第 `j` 列所代表的陆地高度。这个二维矩阵所代表的陆地被太平洋和大西洋所包围着。左上角是「太平洋」,右下角是「大西洋」。规定水流只能按照上、下、左、右四个方向流动,且只能从高处流到低处,或者在同等高度上流动。
911

1012
要求:找出代表陆地的二维矩阵中,水流既可以从该处流动到太平洋,又可以流动到大西洋的所有坐标。

0 commit comments

Comments
 (0)