This is a boilerplate to solve Advent Of Code exercises using Elixir.
In order to run a specific day and part just use:
mix aoc day<number> [part]
Examples:
To run day 5, part 2:
mix aoc day5 2
To run day 7, part 1:
mix aoc day7 1
or
mix aoc day7
Just create a module in ./src/day<number>/day<number>.ex
that exports three functions:
defmodule AdventOfCode.Day1 do
def input do
""
end
def run1(input) do
end
def run2(input) do
end
end
You may want to also add ./src/day<number>/day<number>.md
with the description.
Happy coding~🎄!