You have m balls and n baskets at positions position[]. Place all m balls in baskets to maximise the minimum magnetic force (distance) between any two balls. Return this maximum minimum distance.
Input: Integer array position (basket positions) and integer m (number of balls).
Output: Maximum possible minimum distance between any two balls.
Input: [1,2,3,4,7], 3
Output: 3
Explanation: Place balls at 1,4,7. Min distance = 3.Input: [5,4,3,2,1,1000000000], 2
Output: 999999999
Explanation: Place at 1 and 10^9. Distance = 10^9-1.Input: [1,2,8,10,15], 3
Output: 7
Explanation: Place at 1,8,15. Min distance = 7.2 <= m <= position.length <= 10^51 <= position[i] <= 10^9All positions distinct