Module advent_solutions::advent2017::day12
[−]
[src]
Day 12: Digital Plumber
Walking along the memory banks of the stream, you find a small village that is experiencing a little confusion: some programs can't communicate with each other.
Programs in this village communicate using a fixed system of pipes. Messages are passed between programs using these pipes, but most programs aren't connected to each other directly. Instead, programs pass messages between each other until the message reaches the intended recipient.
For some reason, though, some of these messages aren't ever reaching their intended recipient, and the programs suspect that some pipes are missing. They would like you to investigate.
You walk through the village and record the ID of each program and the
IDs with which it can communicate directly (your puzzle input). Each
program has one or more programs with which it can communicate, and
these pipes are bidirectional; if 8 says it can communicate with 11,
then 11 will say it can communicate with 8.
Functions
| parse_connections | |
| parse_input | |
| part1 |
You need to figure out how many programs are in the group that contains
program ID |
| part2 |
There are more programs than just the ones in the group containing
program ID |