Daily Temperatures (LeetCode 739), small variation
Asked in the Tech screen stage. Given a list of daily temperatures, return for each day the number of days until a strictly warmer temperature occurs. Return -1 when no later day is warmer.
Implement def daily_temperatures(temperatures):. The input is a list of integers, and the output is a list of integers with the same length.
def daily_temperatures(temperatures):