Documentation
¶
Overview ¶
Package aoc2018 implements the solutions for Advent of Code 2018.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllSolutions = []func(string) (string, string, error){ Day01, Day02, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, Unimplemented, }
AllSolutions is the slice of all solutions so that they may be indexed easily. Note that slice index starts at 0 and not 1 so AllSolutions[0] is the solution for Day 1.
Functions ¶
func Day01 ¶
Day01 solves the first day puzzle "Chronal Calibration".
Input ¶
A file containing 958 lines, each of which is either the character `+` or `-` followed by a number. For example:
-19 -18 +13 +14 +7 -3 +14 +5 -11 -13 -22 +4 +12
It is guaranteeed that these numbers will be no more than 100000 and will be no less than -100000.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.