Skip to content

jhrcook/advent-of-code-2023-rust

Repository files navigation

Advent of Code 2023 solutions in Rust

My solutions to the Advent of Code 2023 using Rust.

advent-of-code rust pre-commit Cargo Build & Test

Day Code Stars
1 src/solutions/day01.rs ⭐️⭐️
2 src/solutions/day02.rs ⭐️⭐️
3 src/solutions/day03.rs ⭐️⭐️
4 src/solutions/day04.rs ⭐️⭐️
5 src/solutions/day05.rs ⭐️⭐️
6 src/solutions/day06.rs ⭐️⭐️
7 src/solutions/day07.rs ⭐️⭐️
8 src/solutions/day08.rs ⭐️⭐️
9 src/solutions/day09.rs ⭐️⭐️
10 src/solutions/day10.rs ⭐️1
11 src/solutions/day11.rs ⭐️⭐️
12 src/solutions/day12.rs ⭐️⭐️
13 src/solutions/day13.rs ⭐️⭐️
14 src/solutions/day14.rs ⭐️⭐️
15 src/solutions/day15.rs ⭐️⭐️
16 src/solutions/day16.rs ⭐️⭐️
17 src/solutions/day17.rs ⭐️⭐️
18 src/solutions/day18.rs ⭐️⭐️
19 src/solutions/day19.rs ⭐️
20 src/solutions/day20.rs ⭐️⭐️

Help

Used this Reddit post for Day 12 part 2: https://www.reddit.com/r/adventofcode/comments/18hbbxe/2023_day_12python_stepbystep_tutorial_with_bonus/

I implemented the algorithm described in this Reddit post for Day 17 (Python code)

I was lazy on part 2 of Day 20 and went looking for the answer without trying to really figure it out. Used the logic described in this notebook to get the solution.

Setup

git clone [email protected]:jhrcook/advent-of-code-2023-rust.git
cd advent-of-code-2023-rust

Execute puzzles

Test:

cargo check
cargo test

Dev build and run:

cargo run --release
cargo run --release -- --day 1

Full install and run:

cargo install --path .
aoc-2023
aoc-2023 --day 1

For estimating start-up time:

aoc-2023 --empty

Footnotes

  1. I'm close on puzzle 10 day 2. I have the algorithm ready to search the maze, but there is a bug in the construction of the maze where the primary path is not the only one selected.

About

My solutions to Advent of Code 2023 (in Rust).

Topics

Resources

Stars

Watchers

Forks

Languages