DIY: Largest Rectangle in Histogram
Solve the interview question "Largest Rectangle in Histogram" in this lesson.
Problem statement
We are given a list of n
non-negative integers representing the histogram’s bar height where the width of each bar is 1
. You ...