Skip to content

davidgovea/advent-of-code-18

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code (very incomplete, of course!)

Working through the AoC 2018 challenges in Rust. The contest is already over, which means there are a lot of existing solutions to refer to.

The project structure is heavily inspired by BurntSushi's solutions -- I like the separate-crate-per-challenge structure, and the method of feeding the input text via stdin.

The structure of the main() functions was taken from this reddit tip -- I'm liking -> Result recently -- the function_returning_result()? question-mark operator is great.

Running

To run a solution, cd into its directory and invoke the program with Cargo:

$ cd aoc01
$ cargo run --release < input.txt

2018 progress

2018 Results

Day Part 1 Part 2
Day 1
Day 2
Day 3
Day 4
Day 5
Day 6
Day 7

2019 progress

2019 Results

Day Part 1 Part 2
Day 1
Day 2
Day 3
Day 4
Day 5
Day 6

2020 progress

2020 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

2022 - new approach!

Went with a template this year - the crate-per-challenge approach is nice but kinda boilerplatey. Wanted to jump into latest Rust version, so I am using: https://github.com/fspoettel/advent-of-code-rust

2022 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

About

Advent of Code 2018 solutions in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published