Advent of Code Day 16 (Worked Solution for Parts 1 and 2)

Channel:
Subscribers:
2,650
Published on ● Video Link: https://www.youtube.com/watch?v=FfcjHeD7Z94



Duration: 1:25:40
66 views
1


This was a fun AOC problem with a reasonably simple recursive solution to it. Basically you shoot out a laser beam and it bounces around the world, and you write down which squares it touches. The main thing is to make sure you don't fall into any infinite loops, so always get your base cases sorted out before going too deep into it.







Tags:
aoc
c++
laser
recursion