Problem 2453 · Medium

Destroy Sequential Targets

Group targets by their remainder modulo space, pick the largest group, and return its smallest member.

Open the interactive visualisation