AdventOfCode

module
Version: v0.0.0-...-3517ece Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: GPL-3.0

README

Advent of Code

This repo contains my solutions to the Advent of Code puzzles.

Format

┌───<year>
│   └───<day>
│       ├───naughty
│       │   ├───1
│       │   └───2
│       └───nice
│           ├───1
│           └───2
└───template
Directory Meaning
year The year the puzzle was released.
day The day the puzzle was released.
naughty My first attempt at solving the puzzle; usually as quickly as possible (in real time) to get on leaderboards.
nice The end result of optimizing the solution. Primarily for readability, secondarily for time/space complexity.
1 The first part of the puzzle.
2 The second part of the puzzle.
template Contains a script to generate new day folders.

Notes

Running

Set your working directory to the root folder, i.e. AdventOfCode, before running a solution.

Organization

Each solution is self-contained so there's intentional duplication between the initial/optimized first/second solution files.

Naming

The naughty and nice folders reference the Christmas song Santa Claus Is Coming to Town; AoC is also Christmas themed.

The naughty solutions are hard to read and inefficient, hence naughty. The nice solutions read well and are efficient, hence nice.

Completion

2020

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
naughty 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1
nice 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1,2 1

2019

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
naughty 1,2 1,2 1,2 1,2
nice 1,2

Jump to

Keyboard shortcuts

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