Loading repovive.com/problems/classics/59
Given bar heights of a histogram, find the largest rectangle area that can be formed using contiguous bars.
The bars with heights 5 and 6 form a rectangle of height 5 and width 2, area 10.
All four bars can be used together, giving area 16.
The best rectangle uses the last two bars with height 3, area 6.