day09

package
v0.0.0-...-acf6961 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Part1

func Part1(m Heightmap) int

func Part2

func Part2(m Heightmap) int

Types

type Heightmap

type Heightmap map[advent2021.XY]int

func NewHeightmap

func NewHeightmap(in []string) Heightmap

func (Heightmap) BasinSize

func (m Heightmap) BasinSize(lowPoint advent2021.XY) int

func (Heightmap) IsLowPoint

func (m Heightmap) IsLowPoint(pos advent2021.XY) bool

func (Heightmap) LowPoints

func (m Heightmap) LowPoints() []advent2021.XY

Jump to

Keyboard shortcuts

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