Back to Questions

Daily Temperatures

63.2K viewsAsked at Airbnb
Medium

Question Explain

Given an array of temperatures, return an array such that `answer[i]` is the number of days you have to wait after day $i$ to get a warmer temperature. Use a Monotonic Stack.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Daily Temperatures - Interview Question