Source: Boiling Boulders
Part 1
Given a list of 1x1x1 cubes, determine the total surface area of the cubes.
Given a list of 1x1x1 cubes, determine the total surface area of the cubes.
Simulate Tetris on a 7 wide board with a given (infinitely repeated) series of left and right inputs to be applied on each frame before dropping the block and a given (infinitely repeated) set of blocks. Once 2022 blocks have been dropped, what is the total height of the placed blocks?
Given a graph of nodes, some of which have a
pressure
(per tick output value) and an agent that can move through the graph and activate specific nodes (so that they output their per tick value every future tick), what is the maximum total output possible in 30 steps?
There are a collections of
Sensor
s andBeacon
s. As input, you are given theBeacon
closest to eachSensor
(using Manhattan Distance). If aBeacon
is not closest to any sensor, it will not appear in this list. Calculate how many points in the given row (y=2000000
) cannot contain aBeacon
.
Given a series of walls as input, run a falling sand simulation until any new sand falls of the map. Count how many grains of sand we end up with.
Given pairs of
Signal
s (where aSignal
is a nested list ;example:[[1],[2,3,4]]
), count how many pairs are ‘in order’.
One Signal
is less than the other if:
Given a height map, find the shortest path between two points such that the path can descend any distance but can only climb by a maximum of 1.
Simulate a collection of ‘monkeys’. Each monkey will have a number of items which it will then apply a mathematical operation to, then always divide by 3, then test divisibility to pass to one of two other monkeys. Return as answer the product of the two highest number of times a monkey applies it’s main function to individual items after 20 steps.
Note: Monkeys will always be evaluated in order (so monkey 1 will evaluate any items passed by monkey 0 again in the same round).
Implement a simple virtual machine with two instructions:
nop
which does nothing for 1 cycles andaddx $n
which adds$n
to theX
register (initial value 1) in two cycles. Calculate the sum ofcycle * X
for the cycles 20, 60, 100, 140, 180, 220.
Simulate two connected links such that whenever the first link (head) moves, the tail moves to follow according to the following rules:
Count how many unique spaces are visited by the tail
of the link.