diff --git a/problems/0042.接雨水.md b/problems/0042.接雨水.md index 17c671ef..4383a0b8 100644 --- a/problems/0042.接雨水.md +++ b/problems/0042.接雨水.md @@ -422,7 +422,8 @@ class Solution { 单调栈法 ```java - public int trapMonoStack(int[] height){ +class Solution { + public int trap(int[] height){ int size = height.length; if (size <= 2) return 0; @@ -463,6 +464,7 @@ class Solution { return sum; } +} ``` Python: