Module advent_of_code_2022::day_1
source · Expand description
This is my solution for Advent of Code - Day 1 - Calorie Counting
The task is to sum all the calories carried per elf on our expedition and find those that are carrying the most.
Functions
- Insert the next elf into place in the current top three if its calorie total is high enough
- Extract the calorie totals of the three elves with the most food.
- Turn the input text file into a list of elves by their total carried calories
- The entry point for running the solutions with the ‘real’ puzzle input.
Type Aliases
- An elf represented by the total calories in their combined food items
- The whole expedition’s supplies: a list of Elves’ calorie totals