day_22

package
v0.0.0-...-07010e4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Part1

func Part1()

func Part2

func Part2()

func ViablePairs

func ViablePairs(ns []*Node) int

Types

type Node

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

func ParseNode

func ParseNode(s string) (*Node, error)

/dev/grid/node-x1-y16 87T 70T 17T 80%

func ParseNodes

func ParseNodes(in string) ([]*Node, error)

func (*Node) Clone

func (n *Node) Clone() *Node

type NodeGrid

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

func NewNodeGrid

func NewNodeGrid(ns []*Node) *NodeGrid

func (*NodeGrid) Adjacents

func (ng *NodeGrid) Adjacents(n *Node) []*Node

func (*NodeGrid) Clone

func (ng *NodeGrid) Clone() *NodeGrid

func (*NodeGrid) MustNode

func (ng *NodeGrid) MustNode(pt point) *Node

type NodePair

type NodePair struct {
	A *Node
	B *Node
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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