Documentation
¶
Overview ¶
Package day02_2019 contains the solver for Advent of Code - Day 2: 1202 Program Alarm
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Solver ¶
Solver implements the puzzle.Solver interface for the puzzle for day 2
func (*Solver) Part1 ¶
Part1 solves part 1 of the puzzle. A copy of the opcodes slice is made before running the intcode program. Required to implement Solver.
func (*Solver) Part2 ¶
Part2 solves part 2 of the puzzle by brute-forcing every combination of nouns and verbs until finding the one that gives the correct answer. Required to implement Solver.
func (*Solver) ProcessInput ¶
ProcessInput processes the input by transforming it into a slice of opcodes (ints) saved in the struct. Required to implement Solver.
Click to show internal directories.
Click to hide internal directories.