My OCaml 🐫 solutions for some Advent of Code 2025 puzzles.
- Clone the repository
git clone https://github.com/danielrouco/Advent-of-Code-2025.gitIn each folder there are these files:
dayN
├── example.txt
├── input.txt
├── part1.ml
└── part2.ml
- Compile part X of day N:
cd dayNocamlopt partX.ml -o partX- Run the executable
./partXNote
By default the program gives the solution for the input.txt file. If you want to change that, only change the first line of the .ml file:
By default:
let file = open_in "input.txt"If you want to execute it with example.txt instead:
let file = open_in "example.txt"