Documentation ¶
Index ¶
Constants ¶
View Source
const MaxInt = int(^uint(0) >> 1)
MaxInt is the largest int.
Variables ¶
This section is empty.
Functions ¶
func ErrNotPossible ¶
func ErrNotPossible() error
ErrNotPossible is the error returned if a path doesn't exist.
func ShortestRunnerPath ¶
func ShortestRunnerPath(elevations Elevation, paths PathDistance) (int, error)
ShortestRunnerPath with the condition that the route goes entirely uphill at first, and then entirely downhill. Always starts at location 0 and end at location 0.
Types ¶
type PathDistance ¶
PathDistance represents the distance for a particular path.
Click to show internal directories.
Click to hide internal directories.