day19

package
v0.0.0-...-be45ac3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ACCEPTED = "A"
View Source
const GT = ">"
View Source
const LT = "<"
View Source
const REJECTED = "R"
View Source
const START_PIPELINE = "in"

Variables

View Source
var INSTRUCTION_MATCHER = regexp.MustCompile(`(?P<property>[xmas]{1})+(?P<operator>[<>]{1})(?P<value>\d+):(?P<targetPipeline>\w+)`)
View Source
var ITEM_MATCHER = regexp.MustCompile(`{x=(?P<x>\d+),m=(?P<m>\d+),a=(?P<a>\d+),s=(?P<s>\d+)}`)
View Source
var PIPELINE_MATCHER = regexp.MustCompile(`(?P<label>\w+){(?P<instructions>([xmas]+[<>]{1}\d+:\w+,?)+),(?P<elsePipeline>\w+)}`)

Functions

This section is empty.

Types

type Day19

type Day19 struct{}

func (Day19) Part1

func (d Day19) Part1(input string) *common.Solution

func (Day19) Part2

func (d Day19) Part2(input string) *common.Solution

type Instruction

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

type Item

type Item map[string]int

type KDNode

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

type Pipeline

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

type Range

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

type RangeItem

type RangeItem map[string]Range

func (RangeItem) DeepCopy

func (item RangeItem) DeepCopy() RangeItem

Jump to

Keyboard shortcuts

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