Magnetic Force Between Two Balls
Medium · Binary Search · about 25 minutes
Asked at Amazon, Google, Meta, Microsoft.
You have baskets at distinct positions position[i] and m balls. Put the balls in baskets (at most one per basket) so that the minimum distance between any two balls is as large as possible. Return that maximum minimum distance.