Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 453 Bytes

File metadata and controls

15 lines (10 loc) · 453 Bytes

Difficulty: Hard

Problem

Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.

Example

![image](https://assets.leetcode.com/uploads/2018/10/12/histogram_area.png)
Input: [2,1,5,6,2,3]
Output: 10