Problem 1552 · Medium

Magnetic Force Between Two Balls

Place balls to maximize the smallest gap between any two by binary searching on the distance. The visual shows the gap candidate and the placements it allows.

Open the interactive visualisation