Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6944147

Browse files
Update 0042.接雨水.md
修改代码格式
1 parent 8d1c4d6 commit 6944147

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎problems/0042.接雨水.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,8 @@ class Solution {
422422

423423
单调栈法
424424
```java
425-
public int trapMonoStack(int[] height){
425+
class Solution {
426+
public int trap(int[] height){
426427
int size = height.length;
427428

428429
if (size <= 2) return 0;
@@ -463,6 +464,7 @@ class Solution {
463464

464465
return sum;
465466
}
467+
}
466468
```
467469

468470
Python:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /