Contains an entry to Advent of Code 2022 written in OCaml.
- bin/main_ex1.ml: An imperative solution for day 1
- bin/main_ex1_rec.ml: A recursive version of day 1
- bin/main_ex1_1_rec.ml: A recursive version of day 1, also computing part two.
E.g.:
dune exec bin/main_ex1.exe -- input_file.txt
Where input_file.txt
follows the format described in Day 1, i.e. a
non-empty text file where each line is either empty or an integer, and
where the last and first lines are integer.