Module advent_solutions::advent2017::day05
[−]
[src]
Day 5: A Maze of Twisty Trampolines, All Alike
An urgent interrupt arrives from the CPU: it's trapped in a maze of jump instructions, and it would like assistance from any programs with spare cycles to help find the exit.
Functions
| count_steps |
Counts the steps required to exit the maze, given a instruction mutation
function |
| parse_input |
The message includes a list of the offsets for each jump. Jumps are
relative: |
| part1 |
In addition, these instructions are a little strange; after each jump,
the offset of that instruction increases by |
| part2 |
Now, the jumps are even stranger: after each jump, if the offset was
three or more, instead decrease it by |