...
/Solution: Largest Rectangle in Histogram
Solution: Largest Rectangle in Histogram
Let's solve the Largest Rectangle in Histogram problem using the Stacks pattern.
We'll cover the following...
We'll cover the following...
Statement
Given an array of integers, heights
, that represents the heights of bars in a histogram, find the area of the largest rectangle in the histogram, where the rectangle has a constant width of
Constraints
heights.length
heights[i]
...