Documentation ¶
Overview ¶
Package day07_2019 contains the solver for Advent of Code - Day 7: Amplification Circuit
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MaxIntPipe ¶
type MaxIntPipe struct {
// contains filtered or unexported fields
}
MaxIntPipe represents a pipe of integers that also remembers the last value written to it
func NewMaxIntPipe ¶
func NewMaxIntPipe() MaxIntPipe
NewMaxIntPipe creates and initializes a new MaxIntPipe
func (*MaxIntPipe) Max ¶
func (p *MaxIntPipe) Max() int
Max returns the max value written on this pipe
func (*MaxIntPipe) ReadInt ¶
func (p *MaxIntPipe) ReadInt() int
ReadInt reads an int from the pipe. Implements the IntReader interface
func (*MaxIntPipe) WriteInt ¶
func (p *MaxIntPipe) WriteInt(i int)
WriteInt writes an int to the pipe. Implements the IntWriter interface.
type MaxWriter ¶
type MaxWriter struct {
// contains filtered or unexported fields
}
MaxWriter is a IntWriter that only keeps the maximum value written to it
type Solver ¶
Solver implements the puzzle.Solver interface for the puzzle for day 7
func (*Solver) ProcessInput ¶
ProcessInput processes the input. Required to implement Solver.
Click to show internal directories.
Click to hide internal directories.