Back to Question

Largest Rectangle in Histogram

Question Explain

Given an array of integers representing the histogram's bar heights, find the area of the largest rectangle in the histogram. Use a Monotonic Stack.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.