Contains my personal solutions to Advent of code problems.
Advent of code is hosted on http://adventofcode.com
This projects assumes having inputs named input/dayXY
at the root, where X
is the number of the day and Y
is the letter of the problem for the day.
Example : input/day03b
To run the app, you need to have a Clojure REPL ready.
If you are using Leiningen, simply run lein run
, then input the desired problem number when asked
Example :
10:47 - grasseh:~/projects/cloj/adventofcode-2016 (master) - lein run
Select a level
>03b
You select problem #03b.
Your solution is 1234567
Unit tests are set up using the default leiningen application framework. Simply run
10:47 - grasseh:~/projects/cloj/adventofcode-2016 (master) - lein test
Inputs for the tests are in test/input
. They are based on the examples provided in the official exemples.
Running The 2nd problem will not provide the solution, but a descrypted list of the input. Just copy paste the data to a text file and grep for "northpole"