Back to Questions

Largest Rectangle in Histogram

35.1K viewsAsked at Uber
Hard

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

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Largest Rectangle in Histogram - Interview Question