advent-of-code-2021

module
v0.0.0-...-b2cd0dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2021 License: MIT

README

Go Report Card

🎄 Advent of Code 2021 🎄

AoC2021 logo

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

Directories

Path Synopsis
day_01
go
day_02
go
day_xx
go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL