This repository contains my solutions to the Advent of Code challenges implemented in Go.
The CLI that scaffolds days, downloads input, and submits answers lives in a separate repo: KasimKaizer/aoc-cli. Shared input helpers are imported from github.com/KasimKaizer/aoc-cli/parse.
The repository is organized by year and day:
advent_of_code/
├── 2015/
│ ├── day_01/
│ │ ├── solve.go
│ │ ├── solve_test.go
│ │ └── ...
│ └── ...
├── go.mod
├── go.sum
├── README.md
└── ...
- YYYY: Year of the challenge
- day_XX: Directory for each day's challenge
- solve.go: Solution implementation
- solve_test.go: Test cases for the solution
- day_XX: Directory for each day's challenge
Install and run aoc-cli:
go install github.com/KasimKaizer/aoc-cli/cmd/aoc@latest
export AOC_PATH=/path/to/advent_of_code
export AOC_SESSION=your_session_cookie
aoc -y 2024 -d 7Navigate to the appropriate year and day directory, then:
For part one:
go test -v . -run TestSolveOneFor part two:
go test -v . -run TestSolveTwoAdvent of Code is an annual coding event created by Eric Wastl. Each year, starting on December 1st, a new programming puzzle is released each day until December 25th. These puzzles can be solved in any programming language and are designed to be fun and educational. For more information, visit adventofcode.com.
This project is open source and available under the MIT License.
Thanks to the Advent of Code community for sharing ideas and approaches. Special thanks to Eric Wastl for creating and maintaining this fantastic coding challenge.