URL: https://adventofcode.com/2024
I used the Julia programming language.
- Julia (confirmed to work with Julia v1.11.2)
The following external package was used.
- DataStructures.jl v0.18.20
And then, Julia's standard libraries:
- Printf
- Statistics
- Day 1: Historian Hysteria! d01_p1(), d01_02()
- Day 2: Red-Nosed Reports d02_p1(), d02_02()
- Day 3: Mull It Over d03_p1(), d03_02()
- Day 4: Ceres Search d04_p1(), d04_02()
- Day 5: Print Queue d05_p1(), d05_02()
- Day 6: Guard Gallivant d06_p1(), d06_02()
- Day 7: Bridge Repair d07_p1(), d07_02()
- Day 8: Resonant Collinearity d08_p1(), d08_p2()
- Day 9: Disk Fragmenter d09_p1(), d09_p2()
- Day 10: Hoof It d10_p1(), d10_p2()
- Day 11: Plutonian Pebbles d11_p1(), d11_p2()
- Day 12: Garden Groups d12_p1(), d12_p2()
- Day 13: Claw Contraption d13_p1(), d13_p2()
- Day 14: Restroom Redoubt d14_p1(), d14_p2()
- Day 15: Warehouse Woes d15_p1(), d15_p2()
- Day 16: Reindeer Maze d16_p1(), d16_p2()
- Day 17: Chronospatial Computer d17_p1(), d17_p2()
- Day 18: RAM Run d18_p1(), d18_p2()
- Day 19: Linen Layout d19_p1(), d19_p2()
- Day 20: Race Condition d20_p1(), d20_p2()
- Day 21: Keypad Conundrum d21_p1(), d21_p2()
- Day 22: Monkey Market d22_p1(), d22_p2()
- Day 23: LAN Party d23_p1(), d23_p2()
- Day 24: Crossed Wires d24_p1(), d24_p2()
- Day 25: Code Chronicle d25_p1()
$ sh solve.sh init
For example, if the input file for Day 1 is input
:
$ ls src/day_01/
d01.jl input
$
$ sh solve.sh
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.11.2 (2024-12-01)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia>
For example, both parts of Day 1 have their own solutions.
julia> d01_p1("input")
****
julia> d01_p2("input")
****
There are no puzlle input data files in this repository. Please get them from the AoC 2024 site.
Please see here for the reasons.