Skip to content

drawbu/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 10, 2024
eef359b Β· Dec 10, 2024

History

64 Commits
Nov 30, 2024
Nov 30, 2024
Dec 10, 2024
Nov 30, 2024
Nov 30, 2023
Dec 2, 2022
Dec 1, 2024
Nov 30, 2024
Nov 30, 2024

Repository files navigation

advent-of-code

My solutions for the advent of code.

2024 - ⚑ Zig

Lets learn Zig this time!

2023 - C

Completed: 6/25.

The structure of the project:

2023/
  |__Makefile
  |__main.c
  |__aoc.h
  |__tests.c
  |__day-{n}/
    |__source.c
    |__input_full.txt
    |__input_test{n}.txt

To run my solutions:

make
./aoc2023             # run all
./aoc2023 day08-part2 # run a specific solution

2022 - Go

Completed: 9/25.

I made it to the day 9, and choose to discover Go with it. Pretty fun experience.

❄️ Nix

I use Nix to manage my dev environments, so you can build and run all years binaries with nix:

# $YEAR = 2022, 2023, 2024, etc.
nix run github:drawbu/advent-of-code#${YEAR}     # run solutions
nix develop github:drawbu/advent-of-code#${YEAR} # enter dev env