Free problems › Daily Temperatures
Monotonic Stack · Monotonic next-greater

Daily Temperatures

LeetCode 739 · Module: Stack, Queue & Monotonic

The scenario

you only care about the most recent unresolved item or the strongest candidate still standing, so old state has to be removed in the right order.

What you'll learn

Full video, code, and the workspace are part of PatternMastery Pro — 500 problems for one $9.99 payment.

PatternMastery Pro · More free problems · Pricing