day01

package
v0.0.0-...-f96c37d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DigitPosition

type DigitPosition struct {
	Position int
	Digit    string
}

type DigitPositions

type DigitPositions []DigitPosition

type EfficientSolver

type EfficientSolver struct {
	Lines []string
}

func NewEfficientSolver

func NewEfficientSolver() *EfficientSolver

func (*EfficientSolver) Part1

func (d *EfficientSolver) Part1() (string, error)

func (*EfficientSolver) Part2

func (d *EfficientSolver) Part2() (string, error)

func (*EfficientSolver) ProcessInput

func (d *EfficientSolver) ProcessInput(input string) error

type Solver

type Solver struct {
	Lines []string
}

func NewSolver

func NewSolver() *Solver

func (*Solver) Part1

func (d *Solver) Part1() (string, error)

func (*Solver) Part2

func (d *Solver) Part2() (string, error)

func (*Solver) ProcessInput

func (d *Solver) ProcessInput(input string) error

Jump to

Keyboard shortcuts

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