day_05

package
v0.0.0-...-07010e4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inc

func Inc(a, b int) int

func OverlappingCount

func OverlappingCount(in string, linePointsFunc func(l Line) []Point) (int, error)

func Part1

func Part1()

func Part2

func Part2()

Types

type Line

type Line struct {
	P1, P2 Point
}

func ParseLines

func ParseLines(in string) ([]Line, error)

type Point

type Point struct {
	X, Y int
}

func LinePointsHV

func LinePointsHV(l Line) []Point

func LinePointsHVD

func LinePointsHVD(l Line) []Point

func (Point) Len

func (p Point) Len() float64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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