Search⌘ K
AI Features

Solution: Daily Temperatures

Solution: Daily Temperatures gives an array of daily temperatures. For each day, return how many days until a warmer reading, or zero if none occurs later.

Statement

Given an array of integers, temperatures, that represents daily temperatures, return an array, output, where each element, output[i], indicates the number of days you need to wait after the ithi^{th} day to experience a warmer temperature if there is no future day with a higher ...