You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[Leetcode-322. Coin Change](https://leetcode.com/problems/coin-change/description/)|[c++](./leetcode/322.coin-change.cpp), [python](./leetcode/322.coin-change.py)| O\(K \* N\)| O\(N\)| Index |[Video](https://youtu.be/EjMjlFjLRiM)|
218
+
|[Leetcode-417. Pacific Atlantic Water Flow](https://leetcode.com/problems/pacific-atlantic-water-flow/description/)|[c++](./leetcode/417.pacific-atlantic-water-flow.cpp), [python](./leetcode/417.pacific-atlantic-water-flow.py)| O\(MN\)| O\(MN\)|\-| - |
218
219
|[Leetcode-547. Number Of Provinces](https://leetcode.com/problems/number-of-provinces/description/)|[c++](./leetcode/547.number-of-provinces.cpp), [python](./leetcode/547.number-of-provinces.py)| O\(N^2\)| O\(N\)|\-| - |
219
220
|[Leetcode-695. Max Area Of Island](https://leetcode.com/problems/max-area-of-island/description/)|[c++](./leetcode/695.max-area-of-island.cpp), [python](./leetcode/695.max-area-of-island.py)| O\(MN\)| O\(MN\)|\-| - |
220
221
221
222
## Depth-First Search
222
-
| Problem(13) | Solution | Time | Space | Note | Ref |
223
+
| Problem(14) | Solution | Time | Space | Note | Ref |
|[Leetcode-236. Lowest Common Ancestor Of A Binary Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/description/)|[c++](./leetcode/236.lowest-common-ancestor-of-a-binary-tree.cpp), [python](./leetcode/236.lowest-common-ancestor-of-a-binary-tree.py)| O\(N\)| O\(Height\)| Recursion | - |
232
233
|[Leetcode-257. Binary Tree Paths](https://leetcode.com/problems/binary-tree-paths/description/)|[c++](./leetcode/257.binary-tree-paths.cpp), [python](./leetcode/257.binary-tree-paths.py)| O\(N\)| O\(Height\)|\-| - |
|[Leetcode-417. Pacific Atlantic Water Flow](https://leetcode.com/problems/pacific-atlantic-water-flow/description/)|[c++](./leetcode/417.pacific-atlantic-water-flow.cpp), [python](./leetcode/417.pacific-atlantic-water-flow.py)| O\(MN\)| O\(MN\)|\-| - |
234
236
|[Leetcode-547. Number Of Provinces](https://leetcode.com/problems/number-of-provinces/description/)|[c++](./leetcode/547.number-of-provinces.cpp), [python](./leetcode/547.number-of-provinces.py)| O\(N^2\)| O\(N\)|\-| - |
235
237
|[Leetcode-695. Max Area Of Island](https://leetcode.com/problems/max-area-of-island/description/)|[c++](./leetcode/695.max-area-of-island.cpp), [python](./leetcode/695.max-area-of-island.py)| O\(MN\)| O\(MN\)|\-| - |
236
238
|[Lintcode-11. Search Range In Binary Search Tree](https://www.lintcode.com/problem/search-range-in-binary-search-tree)|[c++](./lintcode/11.search-range-in-binary-search-tree.cpp), [python](./lintcode/11.search-range-in-binary-search-tree.py)| O\(N\)| O\(Height\)| InOrder | - |
// There is an m x n rectangular island that borders both the Pacific Ocean and Atlantic Ocean. The Pacific Ocean touches the island's left and top edges, and the Atlantic Ocean touches the island's right and bottom edges.
8
+
// The island is partitioned into a grid of square cells. You are given an m x n integer matrix heights where heights[r][c] represents the height above sea level of the cell at coordinate (r, c).
9
+
// The island receives a lot of rain, and the rain water can flow to neighboring cells directly north, south, east, and west if the neighboring cell's height is less than or equal to the current cell's height. Water can flow from any cell adjacent to an ocean into the ocean.
10
+
// Return a 2D list of grid coordinates result where result[i] = [ri, ci] denotes that rain water can flow from cell (ri, ci) to both the Pacific and Atlantic oceans.
# There is an m x n rectangular island that borders both the Pacific Ocean and Atlantic Ocean. The Pacific Ocean touches the island's left and top edges, and the Atlantic Ocean touches the island's right and bottom edges.
8
+
# The island is partitioned into a grid of square cells. You are given an m x n integer matrix heights where heights[r][c] represents the height above sea level of the cell at coordinate (r, c).
9
+
# The island receives a lot of rain, and the rain water can flow to neighboring cells directly north, south, east, and west if the neighboring cell's height is less than or equal to the current cell's height. Water can flow from any cell adjacent to an ocean into the ocean.
10
+
# Return a 2D list of grid coordinates result where result[i] = [ri, ci] denotes that rain water can flow from cell (ri, ci) to both the Pacific and Atlantic oceans.
0 commit comments