Largest Rectangle in Histogram | Leeetcode 84 | Live coding session 🔥🔥🔥 | Monotonic Stacks O(n)

preview_player
Показать описание
Here is the solution to "Largest Rectangle in Histogram" leetcode question. Hope you have a great time going through it.

👉 Solutions

🔥🔥🔥🔥👇👇👇 For discussion/feedback/humour/doubts/new openings

🔴 Checkout the series: 🔥🔥🔥

🔥🔥🔥 Leetcode Monthly Contest Playlist

PS : Please increase the speed to 1.25X
Рекомендации по теме
Комментарии
Автор

Thanks for explanation and suggesting similar question (Daily, temperature, Next Greater Element, Next Lower Element).

anujchauhan
Автор

I think in the example you explain, you write the wrong entry for "right" array for index 2, 3. It should be 4 instead of 2.

anujchauhan
join shbcf.ru