Skip to content

StevanFreeborn/advent-of-code-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2024

This repository contains my solutions for the Advent of Code 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 PROBLEM.md file containing the problem description.
  • A INPUT.txt file containing the input for the problem.
  • A dotnet console application containing the solution.
  • An TUnit test project containing unit tests for the solution.

Prequesties

Running the Solutions

To run the solutions, navigate to the solution folder and run the following command:

dotnet run -- <path-to-input-file>

Or for part 2 solutions

dotnet run -- <path-to-input-file> part2

You can also build the projects and run the executables directly.

dotnet build ./bin/Debug/net9.0/<project-name> <path-to-input-file>

Challenges

Day Problem Solution Notes
01 Problem Solution A great way to start!
02 Problem Solution Damn their was an edge case that really bit me...direction change after first pair of levels
03 Problem Solution Thank goodness this wasn't a repeat of day 2.
04 Problem Solution This was fun! Definitely was able to see the growth in my abilities here.
05 Problem Solution A graph to the rescue!
06 Problem Solution I kind of brute forced part two...
07 Problem Solution Not perfect or pretty, but good enough
08 Problem Solution Without some help from chat I don't know where I'd be...to be fair the description kind of mislead me.
09 Problem Solution Doing things with indexes is error prone.
10 Problem Solution I recognized the solution for this based on pattern from last year. Solved using BFS.
11 Problem Solution Dictionary > List
12 Problem Solution CORNERS == SIDES
13 Problem Solution Yay for algebra
14 PROBLEM Solution Part 2 is not as complicated as you think. The answer is using the safety factor
15 PROBLEM Solution This breaks my previous star record!
16 PROBLEM Solution Bruh....part 2 can fuck off...but so glad I did not give up on it.

About

This repository contains my solutions to the problems in the Advent of Code 2024.

Topics

Resources

Stars

Watchers

Forks

Languages