84
-
[LeetCode] 84. Largest Rectangle in HistogramLeetCode 2022. 1. 29. 18:41
https://leetcode.com/problems/largest-rectangle-in-histogram/ Largest Rectangle in Histogram - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Largest Rectangle in Histogram - Hard 너비가 1이고 높이가 heights[i] 인 직사각형들이 있다. 이 때, 만들 수 있는 직사각형의 최대 넓이를 구하는 문제다. 스택 st를 하나 만든다. 이 스택에는 해당 높이를 가..