day16

package
v0.0.0-...-be83087 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package day16 solves AoC 2022 day 16.

Index

Constants

This section is empty.

Variables

View Source
var ExampleScan = []string{
	"Valve AA has flow rate=0; tunnels lead to valves DD, II, BB",
	"Valve BB has flow rate=13; tunnels lead to valves CC, AA",
	"Valve CC has flow rate=2; tunnels lead to valves DD, BB",
	"Valve DD has flow rate=20; tunnels lead to valves CC, AA, EE",
	"Valve EE has flow rate=3; tunnels lead to valves FF, DD",
	"Valve FF has flow rate=0; tunnels lead to valves EE, GG",
	"Valve GG has flow rate=0; tunnels lead to valves FF, HH",
	"Valve HH has flow rate=22; tunnel leads to valve GG",
	"Valve II has flow rate=0; tunnels lead to valves AA, JJ",
	"Valve JJ has flow rate=21; tunnel leads to valve II",
}

Functions

This section is empty.

Types

type ValveScan

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

func ParseValveScan

func ParseValveScan(line string) (vs ValveScan, err error)

type ValveSummary

type ValveSummary struct {
	FlowRates []int
	InitDist  []int
	Dist      [][]int
}

func Preprocess

func Preprocess(scan []ValveScan) (sum ValveSummary)

Directories

Path Synopsis
Package obs contains an obsolete, overcomplicated two-agent search solution for AoC 2022 day 16.
Package obs contains an obsolete, overcomplicated two-agent search solution for AoC 2022 day 16.

Jump to

Keyboard shortcuts

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