🎄 Advent of Code 2021 🎄
Summary
Advent of Code is an annual Advent calendar of programming puzzles.
This year I am doing it in Go and Python.
Running the code
To run the code of a specific day from the root directory run the following, replacing xx
with the day number, 01
- 25
:
go run day_xx/go/main.go
python3 day_xx/python/main.py
Make sure you have Go installed.
To run the code of all days run the script:
./run_all.sh
Make sure you have given permission to execute (chmod +x run_all.sh
).
Overview
Day |
Name |
Python |
Go |
01 |
Sonar Sweep |
⭐⭐ |
⭐⭐ |
02 |
Dive! |
⭐⭐ |
⭐⭐ |
03 |
Binary Diagnostic |
⭐⭐ |
|
04 |
Giant Squid |
⭐⭐ |
|
05 |
Hydrothermal Venture |
⭐⭐ |
|
06 |
Lanternfish |
⭐⭐ |
|
07 |
The Treachery of Whales |
⭐⭐ |
|
Linting
gofmt -s -w . && git ls-files | grep .go | xargs golint
black . && isort . && flake8