Day 34 of LeetCode Challenge
Problem 1: Largest Rectangle in Histogram
Link to the problem: https://leetcode.com/problems/largest-rectangle-in-histogram/
class Solution {
public int largestRectangleArea(int[] heights) {
Stack<Integer> stack = new Stack<>();
...
tusharpant.hashnode.dev3 min read