Largest Rectangle in Histogram
Hard
Stack
Given the heights of n histogram bars of width 1, print the area of the largest rectangle that can be formed inside the histogram.
Constraints
1 <= n <= 10^5 0 <= height <= 10^4
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.