Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/siriscmv/aoc24
AOC 2024 solutions
https://github.com/siriscmv/aoc24
advent-of-code advent-of-code-2024 aoc python
Last synced: 14 days ago
JSON representation
AOC 2024 solutions
- Host: GitHub
- URL: https://github.com/siriscmv/aoc24
- Owner: siriscmv
- Created: 2024-12-01T21:48:56.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-12-25T16:50:12.000Z (about 2 months ago)
- Last Synced: 2024-12-25T17:28:03.957Z (about 2 months ago)
- Topics: advent-of-code, advent-of-code-2024, aoc, python
- Language: Python
- Homepage: https://adventofcode.com/2024
- Size: 146 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code 2024
- List of problems can be found [here](https://adventofcode.com/2024/)
## File structure
- `run.py` - main file that runs the solution
- `inputs/d*.txt` - input data for each day
- `solutions/d*.py` - solutions for each day## Solutions
- Each solution exports `p1` and `p2` functions that take the input data and return the solution
- The default input is an array of strings where each element is a line from the input file
- Solutions that export a `parser` function will have the input data passed through the parser before being passed to `p1` and `p2`
- Solutions can be run with `python3 . `