Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

GitHub go.mod Go version Go Report Card

advent2023

Advent of Code 2023

Instructions

Compiling the code

cd ./cmd/<dayxx>
go build

Days of Advent

Day 1 - Trebuchet?!

Comment:

./day01 -part a -file input
./day01 -part b -file input

Day 2 - Cube Conundrum

Comment: First use of regex. Easier than yesterday!

./day02 -part a -file input
./day02 -part b -file input

Day 3 - Gear Ratios

./day03 -part a -file input
./day03 -part b -file input

Day 4 - Scratchcards

./day04 -part a -file input
./day04 -part b -file input

Day 5 - If You Give A Seed A Fertilizer

Part b is Sloooooow but I decided I don't care :-)

./day05 -part a -file input
./day05 -part b -file input

Day 6 - Wait For It

Expected to change to an equation to solve part 2 but my naive solution ran in under 0.1 sec so I didn't bother

./day06 -part a -file input
./day06 -part b -file input

Day 7 - Camel Cards

Long winded code. Could collapse part b into part a easily and reduce the amount of code but I'm behind on AoC so not going to do it.

./day07 -part a -file input
./day07 -part b -file input

Day 8 - Haunted Wasteland

LCM needed to speed up part 2

./day08 -part a -file input
./day08 -part b -file input

Day 9 - Mirage Maintenance

I don't understand how I made part 2 work, but it does so I'm done.

./day09 -part a -file input
./day09 -part b -file input

Day 10 -

Day 11 - Cosmic Expansion

Had to rewrite once I saw part 2 and realised I didn't need to map out the expanded universe

./day11 -part a -file input
./day11 -part b -file input

Day 12 -

Day 13 -

Day 14 -

Day 15 -

Day 16 -

Day 17 -

Day 18 -

Day 19 -

Day 20 -

Day 21 -

Day 22 -

Day 23 -

Day 24 -

Day 25 -