7 September 2026 · Advanced track
Peak Kiln Fuel Day
Advanced
Dictionaries
Records
Find the day with the highest total kiln fuel usage.
A pottery studio logs every kiln firing. You are given a list of firing records, each naming the day it happened and the amount of fuel it used, in the order the firings happened. Add up the fuel used for each day. Return the day with the highest total fuel used. If two or more days are tied for the highest total, return whichever day was fired first.
Constraints
firings has between 1 and 1000 entrieseach day name has between 1 and 20 charactersfuel_used is a whole number between 1 and 100000
Function signature
def highest_fuel_day(firings):