leetle

Daily challenge for 2025-08-23

235. Daily Temperatures

Write a function solve that, given a list of daily temperatures, returns a list where each element is the number of days to wait until a warmer temperature. If there is no future day for which this is possible, put 0 instead.

Example:
Input: temps = [73,74,75,71,69,72,76,73]
Output: [1,1,4,2,1,1,0,0]

Run this challenge interactively in Python or JavaScript when the app loads.