Source: Day 14: Restroom Redoubt
Full solution for today (spoilers!).
Part 1
Given a series of robots defined with initial
position
andvelocity
on a 101x103 toroidal grid, calculate where the robots will be after 100 iterations. Return the product of the number of robots in each quadrant of the final grid, ignoring the middle lines (since they’re odd).