Skip to content

segwin/adventofcode-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2024

These are my solutions for each day of the Advent of Code 2024 event.

Running the solutions

To run these, you must have Go 1.23+ installed. You can build the app with the following command:

go build -o aoc .

Running a specific day's solution

$ ./aoc day -5

DAY 5:
  PART 1:
    Middle page sum for correct: 6267
  PART 2:
    Middle page sum for reordered incorrect updates: 5184

Running all solutions

$ ./aoc

DAY 1:
  PART 1:
    Total distance: 1830467
  PART 2:
    Similarity score: 26674158
DAY 2:
  PART 1:
    Safe reports: 246
  PART 2:
    Safe reports after problem dampening: 318
[...]

Releases

No releases published

Packages

No packages published

Languages