Practice
/

Largest Rectangle in Histogram

Largest Rectangle in Histogram

Given an array of bar heights representing a histogram, find the area of the largest rectangle that can be formed within the histogram.

Premium Content

Create a free account, then unlock this problem and the entire premium catalog with a one-time CodeSnatch Premium purchase.

Already have an account with premium access? Sign in to continue.