Skip to content

Commit 1b6c5cc

Browse files
authored
Karatsuba type annotation (#9800)
* Replacing the generator with numpy vector operations from lu_decomposition. * Revert "Replacing the generator with numpy vector operations from lu_decomposition." This reverts commit ad217c6. * Added type annotation.
1 parent 0e3ea3f commit 1b6c5cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: maths/karatsuba.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""" Multiply two numbers using Karatsuba algorithm """
22

33

4-
def karatsuba(a, b):
4+
def karatsuba(a: int, b: int) -> int:
55
"""
66
>>> karatsuba(15463, 23489) == 15463 * 23489
77
True

0 commit comments

Comments
 (0)