leetcode Largest Rectangle in Histogram

这题绝对有挑战啊。膜拜了诸多,自己想了个把小时,网上翻阅一个晚上。算是学习了,以下记录分享。 给定一个直方图,找最大矩形面积。例如: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rect
相关文章
相关标签/搜索