Update 0042.接雨水.md

修改代码格式
This commit is contained in:
hailincai 2021-09-05 09:18:34 -04:00 committed by GitHub
parent 8d1c4d65ff
commit 69441475c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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: