Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Dumb solution in Clear category for Largest Rectangle in a Histogram by obone
def largest_histogram(histogram):
s = max([min(histogram[a:b]) * (b - a)
for a in range(len(histogram))
for b in range(a + 1, len(histogram) + 1)])
return s
June 27, 2019
Comments: