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 ad217c6616.

* Added type annotation.
This commit is contained in:
Kamil 2023-10-05 17:30:43 +05:00 committed by GitHub
parent 0e3ea3fbab
commit 1b6c5cc271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
""" Multiply two numbers using Karatsuba algorithm """
def karatsuba(a, b):
def karatsuba(a: int, b: int) -> int:
"""
>>> karatsuba(15463, 23489) == 15463 * 23489
True