# queues medium

The Hottest Three Days

Which stretch of k days IN A ROW was the hottest overall? The ice cream stand needs to know. 🍦☀️

You get daily temps (at least k of them) and the stretch length k. Print the biggest total of any k consecutive days.

Example:

Input: temps = [3, 8, 2, 9, 4], k = 2 Output: 13

Sliding a 2-day window gives totals 11, 10, 11, 13 — the hottest stretch is 9 + 4 = 13.

💡 need a hint?

q-hottest-three-days.py🔒 given lines are locked — write your code in between
loading...