This Julia package contains my solutions for Advent of Code 2017.
| Day | Problem | Time | Allocated memory | Source |
|---|---|---|---|---|
| 1 | ✅ | 185.798 μs | 176.77 KiB | ✅ |
| 2 | ✅ | 65.876 μs | 49.12 KiB | ✅ |
| 3 | ✅ | 3.357 ms | 4.79 MiB | ✅ |
| 4 | ✅ | 2.408 ms | 2.56 MiB | ✅ |
| 5 | ✅ | 56.069 ms | 82.45 KiB | ✅ |
| 6 | ✅ | 2.695 ms | 1.64 MiB | ✅ |
| 7 | ✅ | 1.790 ms | 1.21 MiB | ✅ |
| 8 | ✅ | 1.772 ms | 780.52 KiB | ✅ |
| 9 | ✅ | 129.488 ms | 27.20 KiB | ✅ |
| 10 | ✅ | 718.053 μs | 2.58 MiB | ✅ |
| 11 | ✅ | 1.649 ms | 2.36 MiB | ✅ |
| 12 | ✅ | 20.707 ms | 2.90 MiB | ✅ |
| 13 | ✅ | 52.078 ms | 27.47 KiB | ✅ |
| 14 | ✅ | 91.108 ms | 116.98 MiB | ✅ |
| 15 | ✅ | 1.794 s | 1.33 KiB | ✅ |
| 16 | ✅ | 732.694 ms | 174.12 MiB | ✅ |
| 17 | ✅ | 1.168 s | 20.56 KiB | ✅ |
| 18 | ✅ | 149.145 ms | 11.49 MiB | ✅ |
| 19 | ✅ | 3.976 ms | 5.51 MiB | ✅ |
| 20 | ✅ | 97.166 ms | 10.67 MiB | ✅ |
| 21 | ✅ | 792.754 ms | 475.72 MiB | ✅ |
| 22 | ✅ | 842.253 ms | 7.17 MiB | ✅ |
| 23 | ✅ | 41.619 ms | 2.83 MiB | ✅ |
| 24 | ✅ | 70.683 ms | 26.58 KiB | ✅ |
| 25 | ✅ | 674.128 ms | 390.34 KiB | ✅ |
The benchmarks have been measured on this machine:
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.0 (ORCJIT, skylake)
Make sure you have Julia 1.5 or newer installed on your system.
Start Julia and enter the package REPL by typing ]. Create a new
environment:
(@v1.5) pkg> activate aocInstall AdventOfCode2017.jl:
(aoc) pkg> add https://github.com/goggle/AdventOfCode2017.jl
Go back to the Julia REPL by pushing the backspace button.
First, activate the package:
julia> using AdventOfCode2017Each puzzle can now be run with dayXY():
julia> day01()
2-element Vector{Int64}:
1182
1152This will use my personal input. If you want to use another input, provide it
to the dayXY method as a string. You can also use the readInput method
to read your input from a text file:
julia> input = readInput("/path/to/input.txt")
julia> AdventOfCode2017.Day01.day01(input)
2-element Vector{Int64}:
1182
1152