Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lucifer committed Jun 29, 2020
1 parent 00d7613 commit ee214d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/42.trapping-rain-water.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ int trap(vector<int>& heights)
具体算法:
1. 维护两个指针 left 和 right,分别指向头尾。
2. 初始化左侧和右侧最低的高度都为 0。
2. 初始化左侧和右侧最高的高度都为 0。
3. 比较 height[left] 和 height[right]
- 3.1 如果 height[left] < height[right]
Expand Down

0 comments on commit ee214d2

Please sign in to comment.