chore: formatting with ruff
This commit is contained in:
@@ -25,7 +25,6 @@ def total_distance() -> int:
|
|||||||
return total_distance
|
return total_distance
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def similarity_score() -> int:
|
def similarity_score() -> int:
|
||||||
left = []
|
left = []
|
||||||
right = []
|
right = []
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ def count_safe_reports_with_tolerance(f: TextIO) -> int:
|
|||||||
safe = is_safe(report)
|
safe = is_safe(report)
|
||||||
|
|
||||||
if not safe:
|
if not safe:
|
||||||
for n in range(1, len(report)+1):
|
for n in range(1, len(report) + 1):
|
||||||
safe = is_safe(report[0:n-1] + report[n:])
|
safe = is_safe(report[0 : n - 1] + report[n:])
|
||||||
if safe:
|
if safe:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user