单调栈
Data Structures & Algorithms · 2 notes
- Daily Temperatureshistorical
Given a list of daily temperatures, generate a new list where each position contains the minimum number of days you must wait to observe a warmer temperature.
- Sliding Window Maximumhistorical
Slide a window of length k across an array from left to right and return the maximum value in each window.