DEV Community

Discussion on: AoC Day 6: Chronal Coordinates

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

You don't have to construct an array; you can just iterate over min(x)..max(x) and min(y)..max(y) and add + to the nearest input point.