View Code? Open in Web Editor
NEW
Solutions for the Advent of Code puzzles written in Go: https://adventofcode.com/
License: MIT License
aoc's Introduction
Nothing much to say, really.
./AdventOfCode [profiling flags] -year 2015 -day 4 -input file
will solve the Day 4 problem of Year 2015
using file
as the input file.
This will print out the answer as output.
Profiling flags are as follows.
Only one of them may be active at a time:
-
-cpuprof
: writes CPU profile to cpu.pprof
-
-memprof
: writes memory profile to mem.pprof
-
-trace
: writes execution trace to trace.out
Program flow and structure
main.go
reads the input file
to a buffer bufio.Scanner
.
They are passed on to the “solver functions”.
Please check their individual READMEs.