# stacks advanced

Daily Temperatures, Junior

For every day of the heat-wave log, the weather kids ask: how many days until something WARMER? ☀️

You get the daily temps. For each day print the number of days until a strictly warmer day, or 0 if it never comes — all on one line, space-separated.

Example:

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

Day 0 (73) waits just 1 day for 74. Day 2 (75) waits 4 days for 76. The last two days (76, 73) never see anything warmer, so they print 0.

💡 need a hint?

stk-daily-temps-junior.py🔒 given lines are locked — write your code in between
loading...