LeetCode - 42. Trapping Rain Water
LeetCode - 42. Trapping Rain Water
Hard
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
The above elevation map is represented by array [0,1,0,2,1,0,..
原创
2020-05-29 10:37:50 ·
97 阅读 ·
0 评论