24/36
Part 6 of 8 · The monotonic stackWatch
Watch · 10 min

Daily temperatures with a monotonic stack, the same next-larger idea with distances instead of values. The drawing starts here and the code at 9:25.

Daily Temperatures - Monotonic Stack - Leetcode 739 - Python · NeetCode · Jun 2021YouTube