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)?
Part 1: Start with
n
stacks of different sizes. Take the largest block and distribute its items starting withn+1
and looping around. How many iterations of this does it take before you see a state you’ve seen before?
Part 1: Create a grid in a spiral pattern like so:
17 16 15 14 13 18 5 4 3 12 19 6 1 2 11 20 7 8 9 10 21 22 23—> …
Part 1: Given a list of integer ranges (a la
5-8
), what is the first value not in any given range?