day416

package
v0.0.0-...-36687a4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MinimumStepsPath

func MinimumStepsPath(path []Point) int

MinimumStepsPath returns the minimum number of steps required to walk the path. The path must be walked in order. 8 directions possible: 4 cardinal and 4 intercardinal.

Types

type Point

type Point struct {
	X, Y int
}

Point is a X and Y coordinate.

Jump to

Keyboard shortcuts

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