You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've solved them in Coffeescript one year ago. But since I'm learning Go at the moment, and have just finished writing solutions for puzzles for years 2017 and 2018, I've decided to continue with 2016 puzzles, refactoring and cleaning up solutions as much as possible.
Goals:
implement generic code, that can come in handy during programming contests;
same as for years 2017/2018: learn & document quirks & tricks of Go, which are new to me.
"Go gotchas"
Go is low-level language with built-in concurrency and garbage collection, designed as a highly efficient C++ or Java competitor. To achieve high speed (both in compilation and execution), some surprising design decisions were made. It takes time to learn them.
For list of quirks found previously, refer to README of my Go solutions for year 2018 and 2017.
Puzzle inputs
Inputs are automatically retrieved from Advent of Code, provided you put at least one <session-name>.cookie into inputs/ folder. To get the cookie, refer to website properties in your browser, after logging in into Advent of Code website.