day_15

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Part1

func Part1()

func Part2

func Part2()

Types

type Interval

type Interval struct {
	Low, High int
}

func (Interval) Contains

func (i Interval) Contains(n int) bool

type Intervals

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

func NewIntervals

func NewIntervals(is ...Interval) *Intervals

func (*Intervals) Has

func (is *Intervals) Has(i Interval) bool

func (*Intervals) Join

func (is *Intervals) Join(i Interval)

func (*Intervals) Slice

func (is *Intervals) Slice() []Interval

type Sensor

type Sensor struct {
	Pos    grid.Point
	Beacon grid.Point
	Dist   int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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