This repository contains my solutions for the Advent of Code challenges, implemented in Elixir.
The project structure and tooling are powered by the aoc package, which handles input fetching, file generation, and execution logic.
Because this project uses the aoc helper, the file organization is standardized:
The actual logic for each day resides here.
- Location:
lib/advent_of_code/solutions/yYY/dayXX.ex - Structure: Each file usually contains a
part1/1andpart2/1function where you write your solution code.
This is where example cases provided in the puzzle description are validated.
-
Location:
test/YYYY/dayXX_test.exs -
How to modify: Open the corresponding test file to add the example inputs provided by the puzzle description.
# Example inside test/advent_of_code/2025/day_01_test.exs test "part one example" do input = ~S""" L68 L30 R48 L5 R60 L55 L1 L99 R14 L82 """ assert 3 == solve(input, :part_one) end @part_one_solution 1145 test "part one solution" do assert {:ok, @part_one_solution} == AoC.run(2025, 1, :part_one) end