loading…
Write days_until_warmer(temps) that returns, for each day, how many days you wait for a warmer temperature (0 if it never comes).
days_until_warmer([73, 74, 75, 71, 69, 72, 76, 73])
-> [1, 1, 4, 2, 1, 1, 0, 0]
Stuck on the idea itself? The stack lesson walks through the pattern from scratch.