Skip to content

Commit daf182c

Browse files
github-actionsgithub-actions
github-actions
authored and
github-actions
committed
fixup! Format Python code with psf/black push
1 parent 806f39c commit daf182c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

project_euler/problem_09/sol1.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,13 @@ def benchmark() -> None:
5353
Benchmark code comparing two different version function.
5454
"""
5555
import timeit
56+
5657
print(timeit.timeit("solution()", setup="from __main__ import solution", number=1))
57-
print(timeit.timeit("solution_fast()", setup="from __main__ import solution_fast", number=1))
58+
print(
59+
timeit.timeit(
60+
"solution_fast()", setup="from __main__ import solution_fast", number=1
61+
)
62+
)
5863

5964

6065
if __name__ == "__main__":

strings/can_string_be_rearranged_as_palindrome.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
# Counter is faster for long strings and non-Counter is faster for short strings.
99

1010

11-
def can_string_be_rearranged_as_palindrome_counter(input_str: str = "",) -> bool:
11+
def can_string_be_rearranged_as_palindrome_counter(
12+
input_str: str = "",
13+
) -> bool:
1214
"""
1315
A Palindrome is a String that reads the same forward as it does backwards.
1416
Examples of Palindromes mom, dad, malayalam

0 commit comments

Comments
 (0)