Skip to content

Commit cc6a045

Browse files
authored
Update distribute-repeating-integers.py
1 parent fda8d67 commit cc6a045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/distribute-repeating-integers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def tri_partition(nums, left, right, target, compare):
2929

3030
left, right = 0, len(nums)-1
3131
while left <= right:
32-
pivot_idx = randint(left, right)
32+
pivot_idx = random.randint(left, right)
3333
pivot_left, pivot_right = tri_partition(nums, left, right, nums[pivot_idx], compare)
3434
if pivot_left <= n <= pivot_right:
3535
return

0 commit comments

Comments
 (0)