Skip to content

Commit ef9930c

Browse files
Update algorithms/search/binary_search/magnetic_force_between_two_balls/__init__.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 138533b commit ef9930c

File tree

1 file changed

+1
-3
lines changed
  • algorithms/search/binary_search/magnetic_force_between_two_balls

1 file changed

+1
-3
lines changed

algorithms/search/binary_search/magnetic_force_between_two_balls/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ def max_distance(position: List[int], m: int) -> int:
1414
high = int(sorted_positions[-1] / (m - 1.0)) + 1
1515

1616
def can_place_balls(x: int) -> bool:
17-
""" "
18-
Check if we can place 'm' balls at 'position' with each ball having at least 'x' gap.
19-
"""
17+
"""Check if we can place 'm' balls at 'position' with each ball having at least 'x' gap."""
2018

2119
# place first ball at the first positions
2220
prev_ball_position = sorted_positions[0]

0 commit comments

Comments
 (0)