Files

60 lines
4.5 KiB
Markdown
Raw Permalink Normal View History

# Advent of Code 2024
This repository contains my solutions for the [Advent of Code 2024](https://adventofcode.com/2024) challenges.
## Languages
I am using C# for this year's challenge again.
## Structure
Each day's solution is contained in a separate folder. Each folder contains:
- A dotnet console application containing the solution.
- An TUnit test project containing unit tests for the solution.
### Prequesties
- [.NET 9.0](https://dotnet.microsoft.com/download/dotnet/9.0)
### Running the Solutions
To run the solutions, navigate to the solution folder and run the following command:
```bash
dotnet run -- <path-to-input-file>
```
Or for part 2 solutions
```bash
dotnet run -- <path-to-input-file> part2
```
You can also build the projects and run the executables directly.
```bash
2024-12-16 23:51:43 -06:00
dotnet build ./bin/Debug/net9.0/<project-name> <path-to-input-file>
```
## Challenges
2025-11-20 09:41:34 -06:00
| Day | Problem | Solution | Notes |
|-----|-------------------------------------------------|----------------------------------------|--------------------------------------------------------------------------------------------------------|
| 01 | [Problem](https://adventofcode.com/2024/day/1) | [Solution](./01/HistorianHysteria/) | A great way to start! |
| 02 | [Problem](https://adventofcode.com/2024/day/2) | [Solution](./02/RedNosedReports/) | Damn their was an edge case that really bit me...direction change after first pair of levels |
| 03 | [Problem](https://adventofcode.com/2024/day/3) | [Solution](./03/MullItOver/) | Thank goodness this wasn't a repeat of day 2. |
| 04 | [Problem](https://adventofcode.com/2024/day/4) | [Solution](./04/CeresSearch/) | This was fun! Definitely was able to see the growth in my abilities here. |
| 05 | [Problem](https://adventofcode.com/2024/day/5) | [Solution](./05/PrintQueue/) | A graph to the rescue! |
| 06 | [Problem](https://adventofcode.com/2024/day/6) | [Solution](./06/GuardGallivant/) | I kind of brute forced part two... |
| 07 | [Problem](https://adventofcode.com/2024/day/7) | [Solution](./07/BridgeRepair/) | Not perfect or pretty, but good enough |
| 08 | [Problem](https://adventofcode.com/2024/day/8) | [Solution](./08/ResonantCollinearity/) | Without some help from chat I don't know where I'd be...to be fair the description kind of mislead me. |
| 09 | [Problem](https://adventofcode.com/2024/day/9) | [Solution](./09/DiskFragmenter/) | Doing things with indexes is error prone. |
| 10 | [Problem](https://adventofcode.com/2024/day/10) | [Solution](./10/HoofIt/) | I recognized the solution for this based on pattern from last year. Solved using BFS. |
| 11 | [Problem](https://adventofcode.com/2024/day/11) | [Solution](./11/PlutonianPebbles/) | Dictionary > List |
| 12 | [Problem](https://adventofcode.com/2024/day/12) | [Solution](./12/GardenGroups/) | CORNERS == SIDES |
| 13 | [Problem](https://adventofcode.com/2024/day/13) | [Solution](./13/ClawContraption/) | Yay for algebra |
| 14 | [PROBLEM](https://adventofcode.com/2024/day/14) | [Solution](./14/RestroomRedoubt/) | Part 2 is not as complicated as you think. The answer is using the safety factor |
| 15 | [PROBLEM](https://adventofcode.com/2024/day/15) | [Solution](./15/WarehouseWoes/) | This breaks my previous star record! |
| 16 | [PROBLEM](https://adventofcode.com/2024/day/16) | [Solution](./16/ReindeerMaze/) | Bruh....part 2 can fuck off...but so glad I did not give up on it. |