days

package
v0.0.0-...-cc57cc4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var REGEX = regexp.MustCompile(`^([A-Z1-3]+) = \(([A-Z1-3]+), ([A-Z1-3]+)\)$`)

Functions

func Day01A

func Day01A(file io.Reader) string

func Day01B

func Day01B(file io.Reader) string

func Day02A

func Day02A(file io.Reader) string

func Day02B

func Day02B(file io.Reader) string

func Day03A

func Day03A(file io.Reader) string

func Day03B

func Day03B(file io.Reader) string

func Day04A

func Day04A(file io.Reader) string

func Day04B

func Day04B(file io.Reader) string

func Day05A

func Day05A(file io.Reader) string

func Day05B

func Day05B(file io.Reader) string

func Day06A

func Day06A(file io.Reader) string

func Day06B

func Day06B(file io.Reader) string

func Day07A

func Day07A(file io.Reader) string

func Day07B

func Day07B(file io.Reader) string

func Day08A

func Day08A(file io.Reader) string

func Day08B

func Day08B(file io.Reader) string

func GCD

func GCD(a int, b int) int

greatest common divisor (GCD) via Euclidean algorithm

func LCM

func LCM(a int, b int) int

find Least Common Multiple (LCM) via GCD

Types

type Almanac

type Almanac struct {
	Seeds                    []int
	SeedToSoilMap            EntryList
	SoilToFertilizerMap      EntryList
	FertilizerToWaterMap     EntryList
	WaterToLightMap          EntryList
	LightToTemperatureMap    EntryList
	TemperatureToHumidityMap EntryList
	HumidityToLocationMap    EntryList
}

type Entry

type Entry struct {
	// contains filtered or unexported fields
}

type EntryList

type EntryList struct {
	// contains filtered or unexported fields
}

type Hand

type Hand struct {
	// contains filtered or unexported fields
}

type HandType

type HandType int

type Hands

type Hands struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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