Skip to content

Commit a44a5fb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 34cac9d commit a44a5fb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

searches/floyds_cycle_finding.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
88
Wikipedia: https://en.wikipedia.org/wiki/Cycle_detection#Floyd's_tortoise_and_hare
99
"""
10+
1011
from typing import Any, Callable, Optional, Tuple
1112

1213

13-
def floyds_cycle_finding(
14-
f: Callable[[Any], Any], x0: Any
15-
) -> Optional[Tuple[int, int]]:
14+
def floyds_cycle_finding(f: Callable[[Any], Any], x0: Any) -> Optional[Tuple[int, int]]:
1615
"""
1716
Finds a cycle in the sequence of values generated by the function f.
1817
@@ -77,4 +76,4 @@ def floyds_cycle_finding(
7776
if __name__ == "__main__":
7877
import doctest
7978

80-
doctest.testmod()
79+
doctest.testmod()

0 commit comments

Comments
 (0)