part02

package
v0.0.0-...-1af9f05 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoordRange

type CoordRange struct {
	XStart int
	XEnd   int
	Y      int

	Gear *CoordRange
}

type Coordinate

type Coordinate struct {
	X int
	Y int
}

type Matrix

type Matrix struct {
	// contains filtered or unexported fields
}

func NewMatrix

func NewMatrix(input string) *Matrix

func (*Matrix) NearSymbol

func (m *Matrix) NearSymbol(distance int) []CoordRange

func (*Matrix) Sum

func (m *Matrix) Sum(ranges []CoordRange) (int, error)

Jump to

Keyboard shortcuts

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