day9

package
v0.0.0-...-6cf73a8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnswerForPart1

func GetAnswerForPart1(input []int, preambleSize int) int

GetAnswerForPart1 Get the answer for part 1 of the Day 9 puzzle.

func GetAnswerForPart2

func GetAnswerForPart2(input []int, invalidNumber int) int

GetAnswerForPart2 Get the answer for part 2 of the Day 9 puzzle.

func GetInput

func GetInput(api api.AdventOfCodeAPI) []int

GetInput Get the input for the 8th day.

Types

type EncryptionWeaknessFinder

type EncryptionWeaknessFinder struct {
	InvalidNumber int
}

func (*EncryptionWeaknessFinder) FindWeakness

func (ewf *EncryptionWeaknessFinder) FindWeakness(data []int) int

type XMAS

type XMAS struct {
	Preamble     *list.List
	PreambleSize int
}

func (*XMAS) ReadData

func (xmas *XMAS) ReadData(value int) int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL