Problem 2453 · Medium
Group targets by their remainder modulo space, pick the largest group, and return its smallest member.
Open the interactive visualisation