Skip to content

Advent of Code Go solutions for most of 2020-2024

License

Notifications You must be signed in to change notification settings

dbut2/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aoc

Advent of Code

Advent of Code solutions for some of 2020-2024, mostly in Go

All Go solutions should be runnable through go running the file. For each solution you can either provide your input inside each days solution in input.txt, or set your AOC_SESSION env var and the input will be fetched for you.

e.g.

$ go run ./2024/01/01.go

Only solutions for the current year are guaranteed to be runnable, there is some efforts in resolving issues from previous years though the solutions exist just for reference at that point.

Utility Packages

Included are some utility functions and packages to increase efficiency of solving.

Notable examples:

  • Harness: Framework for running each challenge, handling input and managing expectations of test example input and output.
  • Lists: Implementation of stack, queue, linked list, and doubly linked list.
  • Math: Generic mathematical functions replacing the use of the builtins float64 functions.
  • Space: Data structures for dealing with 2D and 3D spacial problems with integer based coordinate systems.
  • Algorithms: Implementations of well known cs algorithms such as Dijkstra's.

The packages found in this repo are free to use or reference. It's recommend to pin to a commit if you are importing as there are frequent breaking changes, especially during the challenge.

2024 Results

Day Part 1 Part 2
Day 1
Day 2
Day 3
Day 4
Day 5
Day 6
Day 7
Day 8
Day 9
Day 10
Day 11
Day 12
Day 13
Day 14