d14

package
v0.0.0-...-3cf76cc Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ORDEREVERYTHING

func ORDEREVERYTHING(f []byte) (InitializationProgram, []Mask, map[Mask][]int, error)

ORDEREVERYTHING ..

func ParseInput

func ParseInput(f []byte) (InitializationProgram, []Mask, error)

ParseInput ..

func SolvePart1

func SolvePart1(p InitializationProgram, order []Mask) (int, error)

SolvePart1 ..

func SolvePart2

func SolvePart2(p InitializationProgram, order []Mask, locOrder map[Mask][]int) (int, error)

SolvePart2 ..

Types

type InitializationProgram

type InitializationProgram map[Mask]map[int]int

InitializationProgram ..

type Mask

type Mask string

Mask ..

func (Mask) Apply

func (m Mask) Apply(num int) string

Apply ..

func (Mask) FancyApply

func (m Mask) FancyApply(num int) ([]int, error)

FancyApply ..

Jump to

Keyboard shortcuts

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