Skip to content
← Back to the archive

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 entries
  • each day name has between 1 and 20 characters
  • fuel_used is a whole number between 1 and 100000

Function signature

def highest_fuel_day(firings):

Sign in to solve this bracket

Reading the problem is free for everyone. Opening the editor and solving it requires an account with Open Bracket+.