Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

KjetilIN/advent-of-code-2023

Repository files navigation

Solving Advent of Code challenges with Rust 🦀


Introduction

This is my repository for Advent of Code 2023. Working on solving the daily coding challenges from Advent of Code using the Rust programming language. The goal was to learn Rust and become better at programming. For each challenge I have included my own notes, feel free to read them for my explanation.

While my solutions may not always be the fastest, I prioritize code readability. I believe that readable code is better, although I try to optimize for speed as well. Additionally, I'm currently learning Rust and facing time constraints due to exams. That is why I am a couple of days behind ;D

Table of Contents

Day Title Link to notes 🗒️ Stars
1 Day 1: Trebuchet?! Read notes here ⭐⭐
2 Day 2: Cube Conundrum Read notes here ⭐⭐
3 Day 3: Gear Ratios Read notes here ⭐⭐
4 Day 4: Scratchcards Read notes here ⭐⭐
5 Day 5: If You Give A Seed A Fertilizer Read notes here
6 Day 6: Wait For It Read notes here ⭐⭐
7 Day 7: Camel Cards Read notes here
8 Day 8: Haunted Wasteland Read notes here ⭐⭐
9 Day 9: Mirage Maintenance Read notes here ⭐⭐
10 Day 10: Pipe Maze Read notes here ⭐⭐
11 Day 11: Cosmic Expansion Read notes here

Getting Started

  1. Clone this repository:
git clone https://github.com/KjetilIN/advent-of-code-2023.git
cd advent-of-code-2023
  1. CD into the day that you want to run. (Note that each folder is its own cargo project)
# In case of testing day 1
cd day_1
  1. Run the project with cargo:
cargo run
  1. (Extra) Run tests with:
cargo test