aoc2023

package
v0.0.0-...-973409f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(day string, input string) error

func SolveDay01

func SolveDay01(input string) (interface{}, interface{})

func SolveDay02

func SolveDay02(input string) (interface{}, interface{})

func SolveDay03

func SolveDay03(input string) (interface{}, interface{})

func SolveDay04

func SolveDay04(input string) (interface{}, interface{})

func SolveDay05

func SolveDay05(input string) (interface{}, interface{})

func SolveDay06

func SolveDay06(input string) (interface{}, interface{})

func SolveDay07

func SolveDay07(input string) (interface{}, interface{})

func SolveDay08

func SolveDay08(input string) (interface{}, interface{})

Types

type Almanac

type Almanac struct {
	Maps map[string]*AlmanacMap
}

func (*Almanac) PerformMapping

func (a *Almanac) PerformMapping(value int, from string, to string) int

type AlmanacMap

type AlmanacMap struct {
	Src    string
	Dest   string
	Ranges []*AlmanacRange
}

type AlmanacRange

type AlmanacRange struct {
	SrcStart  int
	DestStart int
	Length    int
}

func (*AlmanacRange) MapValue

func (ar *AlmanacRange) MapValue(value int) int

Jump to

Keyboard shortcuts

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