Some of my solutions for Advent of Code puzzles, mostly done during my spare time or coffee breaks.
Language | Problem | Solution | Part 1 | Part 2 | |
---|---|---|---|---|---|
Day 1 | Rust | Trebuchet?! | main.rs | ✓ | ✓ |
Day 2 | Rust | Cube Conundrum | main.rs | ✓ | ✓ |
Day 3 | Rust | Gear Ratios | main.rs | ✓ | ✓ |
Day 4 | Rust | Scratchcards | main.rs | ✓ | ✓ |
Day 5 | Rust | If You Give A Seed A Fertilizer | todo | todo | |
Day 6 | Rust | Wait For It | main.rs | ✓ | ✓ |
Day 7 | Rust | Camel Cards | todo | todo | |
Day 8 | Rust | Haunted Wasteland | main.rs | ✓ | ✓ |
... | |||||
Day 24 | Rust | Never Tell Me The Odds | main.rs | ✓ | todo |
Language | Problem | Solution | Part 1 | Part 2 | |
---|---|---|---|---|---|
Day 1 | Rust | Calorie Counting | main.rs | ✓ | ✓ |
Day 2 | Rust | Rock Paper Scissors | main.rs | ✓ | ✓ |
Day 3 | Rust | Rucksack Reorganization | main.rs | ✓ | ✓ |
Due to copyright requirements of Advent of Code one is not allowed to publicy share its personal generated input files.
If you want to run my solutions, you must login with your account to adventofcode.com, download your personal inputs and use them instead of the encrypted files.
For my reference, inputs here are committed but encrypted with git-crypt
.
For this reason, if you just clone and run the projects within this repository none of the actual input files works.
Consider also that some test cases also checks against my personal solution number, you need to replace values with your solutions in Rust unit tests.
- Install
git-crypt
:brew install git-crypt
- Unlock the repository with the personal encryption key:
git-crypt unlock ~/aoc.key