Expand description
This is my solution for Advent of Code - Day 23: LAN Party
parse_input
turns the input into a Network
where each node can be mapped to the set of computer ids it’s
connected to.
Part 1 is solved by Network::clusters_containing
using Network::trios
Part 2 is solved by Network::find_lan_password
using Network::find_lan_password
Structs§
- Network 🔒Represents a network of computers as a map from any computer to the ids of its direct connections
Functions§
- Build a network from lines like
ab-cd
denoting thatab
is directly connected tocd
. - The entry point for running the solutions with the ‘real’ puzzle input.