Skip to content
/ AoC2024 Public

My solutions to Advent of Code 2024

License

Notifications You must be signed in to change notification settings

kwj/AoC2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2024

URL: https://adventofcode.com/2024

Requirement

I used the Julia programming language.

  • Julia (confirmed to work with Julia v1.11.2)

The following external package was used.

And then, Julia's standard libraries:

  • Printf
  • Statistics

Solutions

How to use

[First time only] Setup dependencies for this project

$ sh solve.sh init

Place puzzle input data files into each solution folder in advance

For example, if the input file for Day 1 is input:

$ ls src/day_01/
d01.jl  input
$

Start Julia REPL

$ 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>

Run solutions

For example, both parts of Day 1 have their own solutions.

julia> d01_p1("input")
****

julia> d01_p2("input")
****

Note

There are no puzlle input data files in this repository. Please get them from the AoC 2024 site.

Please see here for the reasons.

About

My solutions to Advent of Code 2024

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published