AoC 2020 D3: Toboggan Trajectory
| Problem statement | Source code | Tags: Brute force
← Previous Back to AoC Index Next →
Part 1
There may be smarter ways to do this, but I just simulated the movement of the toboggan. The map repeats infinitely to the right, so I used modulo to wrap around.
Part 2
Just repeat part 1 for all slopes and multiply the results.