Skip to content

Commit b00463f

Browse files
committed
Fixed typo
1 parent cc9d165 commit b00463f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kattis/Suspension Bridges/suspensionbridges.vn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def l(epsilon):
2121
# Fancy math. We could just iterate 50 times
2222
# d_l/d_epsilon to figure out tol_epsilon(tol_l)
2323
tol_epsilon = (tol ** 3) / (2 * s)
24-
iterations = ceil(log2(1/tol_epsilon - 2))
24+
iterations = ceil(log2(1/tol_epsilon))
2525
# Btw, for binary search the interval size is (upper_bound - lower_bound) / step
2626
# step = 1 for integers.
2727

0 commit comments

Comments
 (0)