Welcome to my Advent of Code solutions repository!
This project maps my journey through the annual programming puzzles, focusing on readability, clean algorithms, and exploring language features in Python and Rust.
For detailed setup instructions, please see SETUP.md.
To check your environment:
python check.pyLanguage: Rust 🦀 & Python 🐍
Goal: Optimized, idiomatic solutions.
| Day | Puzzle Name | Python | Rust |
|---|---|---|---|
| 01 | Secret Entrance | 🐍 Solution P1: 500µs P2: 1.00ms |
🦀 Solution P1: 43µs P2: 48µs |
| 02 | Gift Shop | 🐍 Solution P1: 266.92ms P2: 767.75ms P3: 472.12ms |
🦀 Solution P1: 47.63ms P2: 75.92ms |
| 03 | Lobby | 🐍 Solution P1: 2.53ms P2: 1000µs |
🦀 Solution P1: 81µs P2: 119µs |
| 04 | Printing Department | 🐍 Solution P1: 14.92ms P2: 402.82ms |
🦀 Solution P1: 2.31ms P2: 28.25ms |
| 05 | Cafeteria | 🐍 Solution P1: 612µs P2: 103µs |
🦀 Solution P1: 59µs P2: 33µs |
| 06 | Trash Compactor | 🐍 Solution P1: 654µs P2: 1.00ms |
🦀 Solution P1: 55µs P2: 121µs |
| 07 | Laboratories | 🐍 Solution P1: 943µs P2: 1.47ms |
🦀 Solution P1: 36µs P2: 36µs |
| 08 | Playground | 🐍 Solution P1: 140.90ms P2: 147.22ms |
🦀 Solution P1: 17.59ms P2: 21.12ms |
| 09 | Movie Theater | 🐍 Solution P1: ⚡ 13.08ms P2: ⚡ 1.18s P3: ⚡ 249.22ms |
🦀 Solution P1: ⚡ 91µs P2: ⚡ 3.91ms |
| 10 | Factory | 🐍 Solution P1: ⚡ 11.64ms P2: ⚡ 103.18ms |
🦀 Solution P1: ⚡ 19µs P2: ⚡ 19µs |
| 11 | Reactor | 🐍 Solution P1: ⚡ 32µs P2: ⚡ 538µs |
🦀 Solution P1: ⚡ 138µs P2: ⚡ 311µs |
| 12 | Christmas Tree Farm | 🐍 Solution P1: ⚡ 1.27ms |
🦀 Solution P1: ⚡ 183µs |
I've been participating for several years. Check out the archives:
| Year | Language(s) | Highlights / Notes |
|---|---|---|
| 2024 | Python | |
| 2023 | Python | |
| 2022 | Python, Rust | First year trying Rust! |
| 2021 | Python | |
| 2020 | Python | |
| 2019 | Python | |
| 2018 | C++ | Low-level optimization focus. |
| 2017 | Python | |
| 2016 | Python | |
| 2015 | Python | The one that started it all. |
This project is licensed under the MIT License - see the LICENSE file for details.
