day09

package
v0.0.0-...-cede9f0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(data string) ([][]int, error)

Types

type Exercise

type Exercise struct{}

func (Exercise) Part1

func (e Exercise) Part1(data string) (int, error)

func (Exercise) Part2

func (e Exercise) Part2(data string) (int, error)

type SensorRead

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

func NewSensorRead

func NewSensorRead(reads []int) *SensorRead

func (*SensorRead) Compute

func (sr *SensorRead) Compute() error

Performs the substractions unti a sequence is all zero

func (SensorRead) ExtrapolateBackward

func (sr SensorRead) ExtrapolateBackward() int

func (SensorRead) ExtrapolateForward

func (sr SensorRead) ExtrapolateForward() int

Jump to

Keyboard shortcuts

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