Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
min(height)*width for histogram in histogram, oh yeah! solution in Creative category for Largest Rectangle in a Histogram by Fermax
def largest_histogram(histogram):
# For every sub-group, find minimum height * width
return max([min(histogram[i:j])*(j-i) for i in range(len(histogram)) for j in range(i+1,len(histogram)+1)])
Jan. 9, 2017