Skip to content

applejag/adventofcode-2024-ocaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2024 via OCalm

This repo contains my attempt at Advent of Code 2024 (https://adventofcode.com/2024)

Running

Requires regular install of OCaml (v5.2.1+) with opam (v2.3.0+) and dune (v3.17.0+): https://ocaml.org/install

$ dune exec adventofcode -- --help
adventofcode <day>
  --file Input file inside the inputs/dayXX/ directory
  -help  Display this list of options
  --help  Display this list of options
$ dune exec adventofcode -- 1
=== file: inputs/day01/input.txt
=== day 01, part 1:
sum: 2430334

=== day 01, part 2:
array len: 99980
sum: 28786472