Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 . `