5094e92d31f63afa289be7c6e5cd5ceefd4f17e4
Not happy that mutable state is being used. But this seems to be the simplest way, and is efficient.
Advent of Code Implementations
Solutions to Advent of code problems written in OCaml
Copyright 2024, Matthew Gretton-Dann.
Licensed under the Apache 2.0 license.
Build instructions
- Install
ocaml
- Clone repository:
git clone https://gitea.gretton-dann.synology.me/mgrettondann/ocaml-aoc.git
- Enter directory:
cd ocaml-acc
- Set up switch:
opam switch create .
- Build with dune:
dune build
Executing tests
Tests are named as bin/dayYYNN.exe
, where YY
is the last two digits of the year, and NN
is the day. For example bin/day2401.exe
is the executable for 2024 day 1. All tests take a command line option containing the file name of puzzle input.
Description
Languages
OCaml
99%
Dune
1%