From 69441475c6f5d037d1eff9a4fd46c4b1913f1ff9 Mon Sep 17 00:00:00 2001 From: hailincai Date: Sun, 5 Sep 2021 09:18:34 -0400 Subject: [PATCH] =?UTF-8?q?Update=200042.=E6=8E=A5=E9=9B=A8=E6=B0=B4.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改代码格式 --- problems/0042.接雨水.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: