mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
ebf66fb78c
commit
73ffa2485d
|
@ -30,8 +30,8 @@ class Shor:
|
|||
while pow(num, start, number) != 1:
|
||||
start += 1
|
||||
return start
|
||||
|
||||
def shor_algorithm(self, number:int) -> tuple[int, int]:
|
||||
|
||||
def shor_algorithm(self, number: int) -> tuple[int, int]:
|
||||
"""
|
||||
Run Shor's algorithm to factor a number.
|
||||
>>> shor = Shor()
|
||||
|
|
Loading…
Reference in New Issue
Block a user