Commit graph

55 commits

Author SHA1 Message Date
680929a20c day 2 part 2
aoc runner takes part as arg and passes to
init state fn call

refactored day 1 to switch parts dynamically
2023-10-28 13:43:21 -04:00
3f047cd890 refactor day1 to use execute function 2023-10-28 12:30:04 -04:00
d84058d959 day 2 part 1 2023-10-28 12:27:59 -04:00
6aa3fbaa58 remove halting logic from day1 2023-10-28 01:31:31 -04:00
c2933897db switch to project format
Fixed a bug in the day1 solution where
the list of totals could add the "current
sum" for a given elf to the list each time
a new entry was added e.g. an input like,

100
200
300

could result in a list like,

[300, 200, 100].

Now we reorder the list at each "reset" (empty line).
2023-10-27 15:47:49 -04:00