Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomfran/aoc-24
Advent of Code 2024 Python Solutions
https://github.com/tomfran/aoc-24
advent-of-code advent-of-code-2024 aoc aoc-2024 aoc-2024-in-python aoc2024 aoc2024-in-python python
Last synced: about 4 hours ago
JSON representation
Advent of Code 2024 Python Solutions
- Host: GitHub
- URL: https://github.com/tomfran/aoc-24
- Owner: tomfran
- Created: 2024-12-02T22:35:00.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-08T18:42:18.000Z (about 2 months ago)
- Last Synced: 2024-12-11T15:18:56.556Z (about 2 months ago)
- Topics: advent-of-code, advent-of-code-2024, aoc, aoc-2024, aoc-2024-in-python, aoc2024, aoc2024-in-python, python
- Language: Python
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code 2024 :christmas_tree:
Python solutions for [Advent of Code](https://adventofcode.com/) 2024.
## Commands
Setup and build everything, using [uv](https://github.com/astral-sh/uv):
```
make build
```Set the following env variable with yout session cookie to allow input downloads:
```sh
AOC_SESSION_ID=...
```Run a solution with:
```sh
python src/aoc/solutions/.py
```Alternatevely you can use one of those two rules:
```sh
make run # run latest file in solutions
make runall # run all solutions
```## Solutions
Here is the complete list of solutions:
| **Day** | **Link** | **Total Lines** | **Effective Lines** | **Runtime** | **Last Updated** |
| ---------------------: | --------------------------------- | --------------: | ------------------: | ----------: | ----------------: |
| 01 | [Link](./src/aoc/solutions/01.py) | 39 | 26 | 0m0.074s | Wed, Dec 11, 2024 |
| 02 | [Link](./src/aoc/solutions/02.py) | 44 | 30 | 0m0.073s | Wed, Dec 11, 2024 |
| 03 | [Link](./src/aoc/solutions/03.py) | 49 | 33 | 0m0.069s | Wed, Dec 11, 2024 |
| 04 | [Link](./src/aoc/solutions/04.py) | 66 | 42 | 0m0.099s | Wed, Dec 11, 2024 |
| 05 | [Link](./src/aoc/solutions/05.py) | 62 | 43 | 0m0.069s | Wed, Dec 11, 2024 |
| 06 | [Link](./src/aoc/solutions/06.py) | 101 | 65 | 0m2.792s | Wed, Dec 11, 2024 |
| 07 | [Link](./src/aoc/solutions/07.py) | 46 | 30 | 0m0.644s | Wed, Dec 11, 2024 |
| 08 | [Link](./src/aoc/solutions/08.py) | 67 | 45 | 0m0.333s | Wed, Dec 11, 2024 |
| 09 | [Link](./src/aoc/solutions/09.py) | 98 | 66 | 0m2.131s | Wed, Dec 11, 2024 |
| 10 | [Link](./src/aoc/solutions/10.py) | 55 | 39 | 0m0.076s | Wed, Dec 11, 2024 |
| 11 | [Link](./src/aoc/solutions/11.py) | 29 | 20 | 0m0.118s | Wed, Dec 11, 2024 |
| 12 (Incomplete part 2) | [Link](./src/aoc/solutions/12.py) | 71 | 49 | 0m0.068s | Fri, Dec 13, 2024 |
| 13 | [Link](./src/aoc/solutions/13.py) | 56 | 35 | 0m0.093s | Fri, Dec 13, 2024 |