Largest Rectangle in a Histogram HDU - 1506(单调栈)
A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may have different heights. For example, the figure on the left shows the histogram that consists of rectangles with the heigh
原创
2021-07-13 12:18:58 ·
182 阅读 ·
0 评论