Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Largest Rectangle in a Histogram by artur_mierzwa
def largest_histogram(histogram):
pole=0
for i in range(len(histogram)):
for j in range (i+1):
x=len(histogram)-i
y=min(histogram[j:len(histogram)-i+j])
pole1=x*y
if pole1>pole:
pole=pole1
return pole
Nov. 2, 2016