栈
Data Structures & Algorithms · 4 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.
- Merge Intervalshistorical
Given a collection of intervals, merge all overlapping intervals and return the resulting coverage.
- Min Stackhistorical
Design a stack that supports push, pop, and top, and can retrieve the minimum element in constant time.