Rosetta Problems

Largest Rectangle in a Histogram

https://onlinejudge.u-aizu.ac.jp/problems/DPL_3_C