Language : OCaml

AbderFaiz 0bf7058c7d init solution 10 hace 4 meses
1 2f19823c78 solution day 8 in progress hace 4 meses
10 0bf7058c7d init solution 10 hace 4 meses
2 bea93e88bb start day 4 part 1 hace 6 meses
3 bea93e88bb start day 4 part 1 hace 6 meses
4 a47d3cb679 Solution day 4 part 2 hace 6 meses
5 a7a8903781 Day 5 part 2 solution hace 5 meses
6 7809ddcf73 Solution day 6 part 2 (can be improved) hace 5 meses
7 d85b88ecae Solution day 7 part 2 hace 5 meses
8 3ebd9111b1 solution day 8 part 2 hace 4 meses
9 20754cf61f improve day9part2 hace 4 meses
.gitignore c648f8cf9a start solution day 9 part 1 hace 4 meses
README.md 4831cf1b23 solution day 9 part 2 hace 4 meses
dune-project 993c0a72ed Solution to day1 and part I of day 2 hace 6 meses

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
9
10
11
12
... ... ...
25

✅ = Completed
⬜ = Not yet


🧑‍💻 Author

Abderrahmane FAIZ

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

Thanks for visiting!