day15

package
v0.0.0-...-eb68029 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindLowestTotalRisk

func FindLowestTotalRisk(m [][]int) int

func FullMap

func FullMap(tile [][]int) [][]int

func ParseInput

func ParseInput(r io.Reader) ([][]int, error)

Types

type Path

type Path []Point

type Point

type Point struct {
	X, Y int
}

type PointValue

type PointValue struct {
	X, Y int
	Val  int
}

type PointValueHeap

type PointValueHeap []PointValue

func (PointValueHeap) Len

func (p PointValueHeap) Len() int

func (PointValueHeap) Less

func (p PointValueHeap) Less(i, j int) bool

func (*PointValueHeap) Pop

func (p *PointValueHeap) Pop() interface{}

func (*PointValueHeap) Push

func (p *PointValueHeap) Push(i interface{})

func (PointValueHeap) Swap

func (p PointValueHeap) Swap(i, j int)

Jump to

Keyboard shortcuts

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