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 ¶
type ValveSummary ¶
func Preprocess ¶
func Preprocess(scan []ValveScan) (sum ValveSummary)
Click to show internal directories.
Click to hide internal directories.