Home
Related Problems
Largest Rectangle in Histogram
Hard
Stack
•
Grind 75
NeetCode 150
Given an array of integers heights representing the histogram's bar height where the width of each bar is 1, return the area of the largest rectangle in the histogram.
Constraints:
1 <= heights.length <= 105
0 <= heights[i] <= 104
Show Test Cases
Show Solution