AlgoMaster Logo

Magnetic Force Between Two Balls

position=[1, 2, 3, 4, 7],m=3
0 / 47
algomaster.io
Step:Sort positions: [1, 2, 3, 4, 7]. Place 3 balls to maximize minimum distance.