Problem 2597 · Medium
Decide for each number whether to include it, blocking any number exactly k away from one already chosen.
Open the interactive visualisation