Skip to content

Commit 7312f4b

Browse files
authored
Update 42.trapping-rain-water.md
1 parent b4b164a commit 7312f4b

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

problems/42.trapping-rain-water.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -59,28 +59,6 @@ for(let i = 0; i < height.length; i++) {
5959
*
6060
* [42] Trapping Rain Water
6161
*
62-
* https://leetcode.com/problems/trapping-rain-water/description/
63-
*
64-
* algorithms
65-
* Hard (42.06%)
66-
* Total Accepted: 278.1K
67-
* Total Submissions: 651.6K
68-
* Testcase Example: '[0,1,0,2,1,0,1,3,2,1,2,1]'
69-
*
70-
* Given n non-negative integers representing an elevation map where the width
71-
* of each bar is 1, compute how much water it is able to trap after raining.
72-
*
73-
*
74-
* The above elevation map is represented by array [0,1,0,2,1,0,1,3,2,1,2,1].
75-
* In this case, 6 units of rain water (blue section) are being trapped. Thanks
76-
* Marcos for contributing this image!
77-
*
78-
* Example:
79-
*
80-
*
81-
* Input: [0,1,0,2,1,0,1,3,2,1,2,1]
82-
* Output: 6
83-
*
8462
*/
8563
/**
8664
* @param {number[]} height

0 commit comments

Comments
 (0)