Search⌘ K
AI Features

Largest Rectangle in Histogram

Largest Rectangle in Histogram gives an array of bar heights and asks for the greatest area of a rectangle formed from consecutive bars, each with unit width.

Statement

Given an array of integers, heights, that represents the heights of bars in a histogram, find the area of ...