Implement a function to find the largest rectangle in a histogram
HardProblem Statement
Implement a function to find the largest rectangle in a histogram
Sample Input
[2, 1, 5, 6, 2, 3]
Sample Output
10
Limits
Time: 2s · Memory: 256 MB
Implement a function to find the largest rectangle in a histogram
[2, 1, 5, 6, 2, 3]
10
Time: 2s · Memory: 256 MB