Solutions to Advent of Code 2017 https://adventofcode.com/2017/
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Chris Smith e9ef83f514 Day 25 il y a 6 ans
data Day 25 il y a 6 ans
docker Docker docker docker docker docker il y a 6 ans
.gitignore Day 14 il y a 6 ans
01.py f-strings il y a 6 ans
02.py f-strings il y a 6 ans
03.py Unsatisfying day 3. il y a 6 ans
04.py Day 4. il y a 6 ans
05.py Day 5. il y a 6 ans
06.py Day 6. il y a 6 ans
07.py Minor day 7 tidying il y a 6 ans
08.py Day 8 il y a 6 ans
09.py Day 9. il y a 6 ans
10.py Day 14 il y a 6 ans
11.py Simplify a little. il y a 6 ans
12.py Day 14 il y a 6 ans
13.py Quick and dirty day 13 il y a 6 ans
14.py Further optimise day 14. il y a 6 ans
15.py Starmap! il y a 6 ans
16.py Reduce instead of iterating. il y a 6 ans
17.py Day 17. il y a 6 ans
18.py Tidy 18 a little. il y a 6 ans
19.py Optimise junction handling slightly. il y a 6 ans
20.py Day 20. il y a 6 ans
21.py Day 21 il y a 6 ans
22.py Day 22. il y a 6 ans
23.py Manual day 23 il y a 6 ans
24.py 24 il y a 6 ans
25.py Day 25 il y a 6 ans
LICENCE.md README and LICENCE. il y a 6 ans
README.md Docker docker docker docker docker il y a 6 ans
run.sh Docker docker docker docker docker il y a 6 ans
shared.py Day 14 il y a 6 ans

README.md

Advent of Code 2017

This repository contains my solution to 2017’s Advent of Code puzzles. The solutions are all written in Python 3; one or two may require the NumPy package, but the rest should work out-of-the-box.

If you have docker installed, simply execute run.sh to build a docker image and execute the latest solution using pypy3. You can specify other days by passing the script names as arguments (e.g. run.sh 03.py).

I tend to focus on short, functional solutions where possible, so they may be a bit hard to read. Some solutions are commented to some degree to help with that.

I have separate repositories for solutions from 2016 and 2015.


To the extent possible under law, I waive all copyright and related or neighboring rights to this work. This work is published from the United Kingdom. See LICENCE.md for full details.