Skip to content

Commit 80718bd

Browse files
Fixes black failures (TheAlgorithms#1742)
1 parent 32ceec5 commit 80718bd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

maths/montecarlo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from numpy import pi, sqrt
55
from random import uniform
66

7+
78
def pi_estimator(iterations: int):
89
"""An implementation of the Monte Carlo method used to find pi.
910
1. Draw a 2x2 square centred at (0,0).
@@ -15,7 +16,6 @@ def pi_estimator(iterations: int):
1516
6. Print the estimated and numpy value of pi
1617
"""
1718

18-
1919
circle_dots = 0
2020

2121
# A local function to see if a dot lands in the circle.

scheduling/first_come_first_served.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ def calculate_turnaround_times(
3838
>>> calculate_turnaround_times([10, 3], [0, 10])
3939
[10, 13]
4040
"""
41-
return [duration_time + waiting_times[i] for i, duration_time in enumerate(duration_times)]
41+
return [
42+
duration_time + waiting_times[i]
43+
for i, duration_time in enumerate(duration_times)
44+
]
4245

4346

4447
def calculate_average_turnaround_time(turnaround_times: List[int]) -> float:

0 commit comments

Comments
 (0)