No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
2015
2016
2017
2018
.gitignore
composer.json
composer.lock
readme.md

readme.md

Advent of Code

Solutions by Willem Mouwen for the Advent of Code yearly event.

Languages

Not all days are available in all languages, but here is what may be available, in order of likeliness.

PHP

PHP 7.2.12 (cli), Zend Engine v3.2.0

Some PHP scripts may require the php-ds extension.

php *.php < input

Java

java version "1.7.0_151", OpenJDK Runtime Environment (IcedTea 2.6.11)

javac *.java
java *.class < input

C++

gcc version 7.2.1

g++ -o cpp.out *.cpp
./cpp.out < input

Rust

rustc 1.24.0

rustc -o rust.out *.rs
./rust.out < input

Python

Python 3.6.4

python *.py < input

Shell Tricks

Run Complete Year

Use a simple for-loop to run over all available days in a year's folder.

cd 2018
for day in `ls | sort -n`; do echo "--- Day $day ---" && time php $day/*.php < $day/input && echo ""; done