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 364bcd9 commit b9a0653Copy full SHA for b9a0653
src/main/java/com/thealgorithms/searches/TrappingRainwater.java
@@ -4,14 +4,14 @@
4
* Trapping Rainwater Problem
5
* Given an array of non-negative integers representing the height of bars,
6
* compute how much water it can trap after raining.
7
- *
+ *
8
* Example:
9
* Input: [4,2,0,3,2,5]
10
* Output: 9
11
12
* Time Complexity: O(n)
13
* Space Complexity: O(1)
14
15
* Reference: https://en.wikipedia.org/wiki/Trapping_rain_water
16
*/
17
public class TrappingRainwater {
0 commit comments