Your question is Daily Temperatures Warmer Days. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
At a weather feature for ClimaNow, you are given a list of daily temperatures. For each day, return how many days you must wait until a warmer temperature occurs. If no future day is warmer, return 0 for that position.
temperatures, where temperatures[i] is the temperature on day ianswer of the same length, where answer[i] is the number of days until a warmer temperature after day i, or 0 if none existsdef daily_temperatures(temperatures):