Source: Day 11: Reactor
Full solution for today (spoilers!).
Part 1
Given a directed graph defined where
aaa: you hhhmeansaaais connected toyouandhhh, how many paths are there fromyoutoout.
Full solution for today (spoilers!).
Given a directed graph defined where
aaa: you hhhmeansaaais connected toyouandhhh, how many paths are there fromyoutoout.
Full solution for today (spoilers!).
You are given a map like this:
.......S....... ............... .......^....... ............... ......^.^...... ...............A laser shines from the top
Sand splits each time it hits a^, making this:.......S....... .......|....... ......|^|...... ......|.|...... .....|^|^|..... .....|.|.|.....The two lasers in the center of this example merge to count as one laser.
Count how many times lasers hit splitters.
Full solution for today (spoilers!).
Given a heightmap (
0to9), for each0count how many9you can reach on paths that only ever increase height by exactly 1 at a time. Sum these values.