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: 9 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 Category

type Category string

type Mapping

type Mapping struct {
	FromCategory Category
	ToCategory   Category
	Ranges       []MappingRange
}

func (*Mapping) MapMany

func (m *Mapping) MapMany(vals []int) []int

func (*Mapping) MapOne

func (m *Mapping) MapOne(val int) int

type MappingRange

type MappingRange struct {
	FromStartIdx int
	ToStartIdx   int
	Len          int
}

type Range

type Range struct {
	StartIdx int
	Len      int
}

func (Range) String

func (r Range) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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