Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Creative category for Largest Rectangle in a Histogram by saklar13
def largest_histogram(h):
return max(min(h[i:j+1]) * (j - i + 1)
for i in range(len(h))
for j in range(i, len(h)))
Jan. 25, 2017