Given an array of daily temperatures, return an array where answer[i] is the number of days until a warmer temperature. If no future warmer day, answer[i] = 0.
Input: temperatures=[73,74,75,71,69,72,76,73] Output: [1,1,4,2,1,1,0,0]
Unlock hints progressively β start gentle, go deeper only if needed.
Level 1: Gentle Nudge
A subtle direction
Level 2: Approach
The algorithm to use
Level 3: Detailed
Step-by-step guidance
to save progress and use AI features