Advent of code 2020
Install Elixir/Erlang
Check asdf/elixr! 😛
Tested on Elixir 1.10.3 (compiled with Erlang/OTP 21)
Running each problem
- Clone the repo
- From the repo root directory, run mix run path-to-elixir-script path-input-file eg:
# Part 1 of day 3
$ mix run --no-mix-exs 03/trajectory.exs --p 1 03/input.txt
#> Traversing given tree map in file: 03/input.txt for part 1
#> Total = 289
# Part 2 of day 3
$ mix run --no-mix-exs 03/trajectory.exs --p 1 03/input.txt
#> Traversing given tree map in file: 03/input.txt for part 2
#> Total = 5522401584