Skip to content

sreecodeslayer/advent-of-code-2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of code 2020

https://adventofcode.com/2020

Install Elixir/Erlang

Check asdf/elixr! 😛

Tested on Elixir 1.10.3 (compiled with Erlang/OTP 21)

Running each problem

  1. Clone the repo
  2. 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