Language : OCaml

AbdoFizzy 2a2d893268 Solution day 5 part 1 il y a 5 mois
1 bea93e88bb start day 4 part 1 il y a 6 mois
2 bea93e88bb start day 4 part 1 il y a 6 mois
3 bea93e88bb start day 4 part 1 il y a 6 mois
4 a47d3cb679 Solution day 4 part 2 il y a 6 mois
5 2a2d893268 Solution day 5 part 1 il y a 5 mois
.gitignore bea93e88bb start day 4 part 1 il y a 6 mois
README.md 2a2d893268 Solution day 5 part 1 il y a 5 mois
dune-project 993c0a72ed Solution to day1 and part I of day 2 il y a 6 mois

README.md

🎄 Advent of Code 2024 – OCaml Solutions

Welcome to my Advent of Code 2024 repository!
This project contains my daily solutions written in OCaml, with each day's puzzle separated into two parts and organized in a clean, modular structure.


📁 Project Structure

Each day's folder is named after the day number (1 to 25). Inside each folder:

  • solve_1.ml – solution to Part 1
  • solve_2.ml – solution to Part 2
  • input – create it with your input (AOC's author Eric Wastl suggests not publishing puzzle inputs)
  • dune – Dune file to build the solutions

🚀 How to Run

To run a solution, make sure you have OCaml installed.

Then:

  dune build

To execute solution

  (cat <day_number>/input | dune exec ./<day_number>/solve_<part_number>.exe)

replace <day_number> with the folder name, e.g 1

replace <part_number> with 1 for Part 1 or 2 for Part 2


📅 Progress

Day Part 1 Part 2
1
2
3
4
5
6
7
8
... ... ...
25

✅ = Completed
⬜ = Not yet


🧑‍💻 Author

Abderrahmane FAIZ

This repo is built for learning, fun, and celebrating the spirit of problem-solving.

Thanks for visiting!