day_12

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Part1

func Part1()

func Part2

func Part2()

Types

type Grid

type Grid struct {
	Rows  []*Row
	Start grid.Point
	End   grid.Point
}

func (*Grid) AreNeighbours

func (g *Grid) AreNeighbours(t1, t2 grid.Point) bool

func (*Grid) DistanceBetween

func (g *Grid) DistanceBetween(t1, t2 grid.Point) float64

func (*Grid) Equal

func (g *Grid) Equal(t1, t2 grid.Point) bool

func (*Grid) Nodes

func (g *Grid) Nodes() []grid.Point

impl Diskstra

type Row

type Row struct {
	Cols []int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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