day16

package
v0.0.0-...-2b8c56d Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Solution

func Solution() (any, any)

Types

type Item

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

type Neighbor

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

type PosDir

type PosDir struct {
	Row int
	Col int
	Dir grid.Direction
}

func ToPosDir

func ToPosDir(pos grid.Position, dir grid.Direction) PosDir

type PriorityQueue

type PriorityQueue []*Item

func (PriorityQueue) Len

func (pq PriorityQueue) Len() int

func (PriorityQueue) Less

func (pq PriorityQueue) Less(i, j int) bool

func (*PriorityQueue) Pop

func (pq *PriorityQueue) Pop() any

func (*PriorityQueue) Push

func (pq *PriorityQueue) Push(x any)

func (*PriorityQueue) SetPriority

func (pq *PriorityQueue) SetPriority(item *Item, priority int)

func (PriorityQueue) Swap

func (pq PriorityQueue) Swap(i, j int)

Jump to

Keyboard shortcuts

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