d12

package
v0.0.0-...-b6440bf Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed example.txt
	FileExample []byte

	//go:embed input.txt
	FileInput []byte
)

Functions

func NumArrangements

func NumArrangements(record Record) int64

Types

type Game

type Game struct {
	Records []Record
}

func Parse

func Parse(file []byte) (*Game, error)

func (*Game) SolvePart1

func (g *Game) SolvePart1() int64

func (*Game) SolvePart2

func (g *Game) SolvePart2() int64

type Record

type Record struct {
	Row    string
	Values []int
}

Jump to

Keyboard shortcuts

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