Problem 1989 · Medium

Maximum Number of People That Can Be Caught in Tag

Match as many people as possible to distinct taggers within reach. The visual sorts both sides by position and pairs them greedily.

Open the interactive visualisation