Skip to content

joaopgmaria/aoc-solutions-elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdventOfCode solutions in Elixir

An attempt at Advent Of Code using Elixir

Run

iex -S mix
Day1.part1()
Day1.part2()
...
Dayn.partn()

Test

Run all tests

mix test

Run exercise (day) specific tests

mix test --only day:1

Benchmark

There are some exercises where I iterated multiple times with different solutions.
All of the solutions were kept (when meaninfull) and can be called individually:

Day2.part2(:comprehension)
Day2.part2(:recursion)

If you want to benchmark differences use:

Benchee.run(
    %{
        "comprehension" => fn -> Day2.part2(:comprehension) end,
        "recursion" => fn -> Day2.part2(:recursion) end,
        "beam processes" =>  fn -> Day2.part2(:beam) end
    }
)

About

AdventOfCode solutions in Elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages