๐advent-of-code-2021
Overview
Advent of Code 2022 will be starting soon. In preparation for it, I decided to go back and solve problems from the previous iteration. This repository contains the solutions for the 2021 iteration.
My language of choice for the year is Python. My goal is to write simple, readable, and idiomatic code as much as I can. I will also try to restrict myself to the standard library for the most part.
I have also tried to add some basic comments explaining the approach in each problem
Solutions
Each day's solution is in its own folder under src
. Solutions for part A, B are independent and in their own files named a.py
and b.py
respectively.
Input for the day_XX is in the XX.txt
file under the inputs
directory.
Running them is as simple as -
$ python src/day_XX/a.py
$ python src/day_XX/b.py
# or run them all
$ bash run-all.sh
Or, if you have just installed
$ just run XX
Note: You might require Python v3.10.8.
Stars obtained
39 / 50 โญ
Other Advent of Code solutions
Year | Repo | Language |
---|---|---|
2021 | advent-of-code-2021 (this repo) | Python |
2022 | advent-of-code-2022 | Rust |
Acknowledgements
Thanks to Eric Wastl for creating and managing the Advent of Code project.