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