292. Daily Temperatures
MediumStack
Given an array of integers temperatures, return an array answer such that answer[i] is the number of days you have to wait after the ith day to get a warmer temperature.
Examples
Input: [73,74,75,71,69,72,76,73]
Output: [1,1,4,2,1,1,0,0]
Explanation: Public test case for Daily Temperatures
Constraints
- 1 <= temperatures.length <= 10^5
- 30 <= temperatures[i] <= 100
Loading...
Run checks all cases above. Submit evaluates all test cases.