Awesome
AdventOfCode2024
<!-- [![CI](https://github.com/goggle/AdventOfCode2024.jl/workflows/CI/badge.svg)](https://github.com/goggle/AdventOfCode2024.jl/actions?query=workflow%3ACI+branch%3Amain) --> <!-- [![Code coverage](https://codecov.io/gh/goggle/AdventOfCode2024.jl/branch/main/graphs/badge.svg?branch=main)](https://codecov.io/github/goggle/AdventOfCode2024.jl?branch=main) -->This Julia package contains my solutions for Advent of Code 2024.
Overview
The benchmarks have been measured on this machine:
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 8 × Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
Threads: 1 on 8 virtual cores
Installation and Usage
Make sure you have Julia 1.8 or newer installed on your system.
Installation
Start Julia and enter the package REPL by typing ]
. Create a new
environment:
(@v1.8) pkg> activate aoc
Install AdventOfCode2024.jl
:
(aoc) pkg> add https://github.com/goggle/AdventOfCode2024.jl
Go back to the Julia REPL by pushing the backspace
key.
Usage
First, activate the package:
julia> using AdventOfCode2024
Each puzzle can now be run with dayXY()
:
julia> day01()
2-element Vector{Int64}:
1590491
22588371
This 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> AdventOfCode2024.Day01.day01(input)
2-element Vector{Int64}:
1590491
22588371