84. Largest Rectangle in Histogram
84. Largest Rectangle in HistogramGiven n non-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,1,3,2,1,
原创
2020-10-03 10:33:35 ·
178 阅读 ·
0 评论