This repo contains my solutions for the coding challenge Advent of code where one coding challenge is posted every morning until Christmas day. There is a separate folder for each year.
2020 - Typescript
2021 - Typescript (timed), Python
Update 2021-12-13
As an experiment i've started converting to run everything in Deno instead!
2022 - Typescript (timed)
Make sure you have Bun installed. That's it!
To get the input run:
bash fetch_input.sh -y YEAR -d DAY
All flags are optional. If nothing is entered, the current year and day will be used.
This script only works if there is a .env
file in the repo root with an
AOC_SESSION_COOKIE=[your-aoc-session-cookie]
in it.
To run the code for any year and day run:
bun run index.ts -y YEAR -d DAY PART
PART
decides wether to run part one or two. One is default