day15

package
v0.0.0-...-0479e1b Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const EAST = 4
View Source
const HALLWAY = 1
View Source
const NORTH = 1
View Source
const OXYGEN_SYSTEM = 4
View Source
const SOUTH = 2
View Source
const UNKNOWN = 0
View Source
const WALL = 2
View Source
const WEST = 3

Variables

This section is empty.

Functions

func PrintKnowledgeOfArea

func PrintKnowledgeOfArea(nodeContents map[node]int, reverseNodeCoords map[node]int)

func Run

func Run(f *os.File, partTwo bool)

Types

type Neighbors

type Neighbors = struct {
	// contains filtered or unexported fields
}

type NodeHeap

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

func (*NodeHeap) Len

func (h *NodeHeap) Len() int

func (*NodeHeap) Less

func (h *NodeHeap) Less(i, j int) bool

func (*NodeHeap) Pop

func (h *NodeHeap) Pop() any

func (*NodeHeap) Push

func (h *NodeHeap) Push(x any)

func (*NodeHeap) Swap

func (h *NodeHeap) Swap(i, j int)

Jump to

Keyboard shortcuts

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