version
.start
to end
such that nodes named with lowercase letters are visited once, and nodes with uppercase letters can be visited any number of times.Part 1: A network of nodes is defined by a list of lines formatted as such:
2 <-> 0, 3, 4
Part 1: A tree is defined as such:
node (weight) -> child1, child2, ...
node (weight)
Where a
node
always has a weight, but may or may not have child nodes.
What is the name of the root
node
of the tree (the node without a parent)?