We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d1c4d6 commit 6944147Copy full SHA for 6944147
problems/0042.接雨水.md
@@ -422,7 +422,8 @@ class Solution {
422
423
单调栈法
424
```java
425
- public int trapMonoStack(int[] height){
+class Solution {
426
+ public int trap(int[] height){
427
int size = height.length;
428
429
if (size <= 2) return 0;
@@ -463,6 +464,7 @@ class Solution {
463
464
465
return sum;
466
}
467
+}
468
```
469
470
Python:
0 commit comments