Functions
Checksum
function
#
func Checksum(l *list.List) int
Init
method
#
func (p *PuzzleStruct) Init(reader io.Reader) error
InitCtx
method
#
func (p *PuzzleStructWithCtx) InitCtx(ctx context.Context, reader io.Reader) error
NewSolver
function
#
func NewSolver() *PuzzleStruct
NewSolverWithCtx
function
#
func NewSolverWithCtx() *PuzzleStructWithCtx
Solve
method
#
func (p *PuzzleStruct) Solve(part int) (string, error)
SolveCtx
method
#
func (p *PuzzleStructWithCtx) SolveCtx(ctx context.Context, part int) (string, error)
init
function
#
func init()
init
function
#
func init()
parseInput
function
#
func parseInput(sc *bufio.Scanner) (*string, *[]int, error)
tryToMove
function
#
func tryToMove(l *list.List, e *list.Element) (*list.Element, error)
validateInput
function
#
func validateInput(ints *[]int) error