Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dlesbre/advent-of-code
Puzzle solutions for advent of code 2022, 2023 and 2024
https://github.com/dlesbre/advent-of-code
advent-of-code advent-of-code-2022 advent-of-code-2023 advent-of-code-2024 ocaml rust
Last synced: 8 days ago
JSON representation
Puzzle solutions for advent of code 2022, 2023 and 2024
- Host: GitHub
- URL: https://github.com/dlesbre/advent-of-code
- Owner: dlesbre
- License: mit
- Created: 2022-12-02T14:45:11.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-17T20:44:12.000Z (11 days ago)
- Last Synced: 2024-12-17T21:33:14.844Z (11 days ago)
- Topics: advent-of-code, advent-of-code-2022, advent-of-code-2023, advent-of-code-2024, ocaml, rust
- Language: OCaml
- Homepage:
- Size: 310 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advent of Code
Puzzle solutions for [advent of code 2022](https://adventofcode.com/2022/) and [2024](https://adventofcode.com/2024), in OCaml, as well as [advent of code 2023](https://adventofcode.com/2023/), in Rust.
Most run under 1s, all run under 5 minutes.Building just requires a not too old [ocamlopt](https://v2.ocaml.org/docs/install.html)
or [rustc](https://www.rust-lang.org/tools/install).
I tested it on **OCaml 4.14.0** and **Rust 1.71.1** (but it should work with other versions as well).To compile and test on a perticular day's puzzle, use
```bash
make YEAR=2022 DAY=03 compile # compiles
make YEAR=2022 DAY=03 # compiles and runs (part 2) on test date
make YEAR=2022 DAY=03 run # compiles and runs on real data
```**Note:** test and data files are not included in this repository for
[copyright reasons](https://adventofcode.com/about#faq_copying). In order to
run the solution (`make` or `make run`), go to the corresponding AOC puzzle and copy:
- the example input to `//puzzle_test.txt`
- the true input to `//puzzle_data.txt`