Source: Day 8: Resonant Collinearity
Full solution for today (spoilers!).
Part 1
Given a grid with either open tiles (
.
) or towers (anything else), for each pair of towers, there is an antinode at each of the points that is 2x as far from one tower as the other. How many antinodes are there still within the bounds of the map?