Exercises/#94 Daily Temperatures
#94

Daily Temperatures

MediumπŸ“š Stack & Queue
80 XP

Problem

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.

Examples

Input: temperatures=[73,74,75,71,69,72,76,73]
Output: [1,1,4,2,1,1,0,0]
stackmonotonic-stack
AI Assistantβ€” powered by AI

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

94 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features