54f14c04927c509b601fba0070326b797b24f14f
Simplify may be in the eye of the beholder here. This reduces code duplication, as both parts are effectively the same. Part 2 just has an extra operation that can be carried out.
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%