package
Version:
v0.0.0-...-e61498d
Opens a new window with list of versions in this module.
Published: Feb 4, 2024
License: Unlicense
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GetHeight calculates the height of of a map location. a = 0 -> z = 25.
PopulateFromInput populates the graph with the input data and sets up possible travel between points.
PrintPath prints the path on the map.
Exercise for Advent of Code 2022 day 12
One returns the answer to the first part of the exercise.
incorrect: 354
answer: 330
Two returns the answer to the second part of the exercise.
answer: 321
type Location struct {
Coord Point
Height int
}
Location is a set of coordinates on the map with a height.
type Point struct {
X int
Y int
}
Point is an X, Y coordinate.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.