Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dbut2/advent-of-code

Advent of Code Go solutions for most of 2020-2024
https://github.com/dbut2/advent-of-code

advent-of-code advent-of-code-2023 advent-of-code-2023-go advent-of-code-2024 advent-of-code-2024-go advent-of-code-go aoc aoc-go go

Last synced: 1 day ago
JSON representation

Advent of Code Go solutions for most of 2020-2024

Awesome Lists containing this project

README

        

# aoc
### Advent of Code

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

All Go solutions should be runnable through `go run`ning 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.
```shell
$ 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](https://adventofcode.com/2024/day/1) | ⭐ | ⭐ |
| [Day 2](https://adventofcode.com/2024/day/2) | ⭐ | ⭐ |
| [Day 3](https://adventofcode.com/2024/day/3) | ⭐ | ⭐ |
| [Day 4](https://adventofcode.com/2024/day/4) | ⭐ | ⭐ |
| [Day 5](https://adventofcode.com/2024/day/5) | ⭐ | ⭐ |
| [Day 6](https://adventofcode.com/2024/day/6) | ⭐ | ⭐ |
| [Day 7](https://adventofcode.com/2024/day/7) | ⭐ | ⭐ |
| [Day 8](https://adventofcode.com/2024/day/8) | ⭐ | ⭐ |
| [Day 9](https://adventofcode.com/2024/day/9) | ⭐ | ⭐ |
| [Day 10](https://adventofcode.com/2024/day/10) | ⭐ | ⭐ |
| [Day 11](https://adventofcode.com/2024/day/11) | ⭐ | ⭐ |
| [Day 12](https://adventofcode.com/2024/day/12) | ⭐ | ⭐ |
| [Day 13](https://adventofcode.com/2024/day/13) | ⭐ | ⭐ |
| [Day 14](https://adventofcode.com/2024/day/14) | ⭐ | ⭐ |
| [Day 15](https://adventofcode.com/2024/day/15) | ⭐ | ⭐ |
| [Day 16](https://adventofcode.com/2024/day/16) | ⭐ | ⭐ |
| [Day 17](https://adventofcode.com/2024/day/17) | ⭐ | ⭐ |
| [Day 18](https://adventofcode.com/2024/day/18) | ⭐ | ⭐ |
| [Day 19](https://adventofcode.com/2024/day/19) | ⭐ | ⭐ |
| [Day 20](https://adventofcode.com/2024/day/20) | ⭐ | ⭐ |
| [Day 21](https://adventofcode.com/2024/day/21) | ⭐ | ⭐ |
| [Day 22](https://adventofcode.com/2024/day/22) | ⭐ | ⭐ |
| [Day 23](https://adventofcode.com/2024/day/23) | ⭐ | ⭐ |
| [Day 24](https://adventofcode.com/2024/day/24) | ⭐ | ⭐ |
| [Day 25](https://adventofcode.com/2024/day/25) | ⭐ | ⭐ |