day08

package
v0.0.0-...-f96c37d Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Id    string
	Left  string
	Right string
}

func (*Node) IsDeadEnd

func (n *Node) IsDeadEnd() bool

type Solver

type Solver struct {
	Instructions []rune
	Graph        map[string]Node
}

func NewSolver

func NewSolver() *Solver

func (*Solver) Part1

func (d *Solver) Part1() (string, error)

func (*Solver) Part2

func (d *Solver) Part2() (string, error)

func (*Solver) Period

func (d *Solver) Period(node string) int

func (*Solver) ProcessInput

func (d *Solver) ProcessInput(input string) error

func (*Solver) StartingNodesToEndingNodes

func (d *Solver) StartingNodesToEndingNodes() int

func (*Solver) Traverse

func (d *Solver) Traverse(src, dst string) int

Jump to

Keyboard shortcuts

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