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