Skip to content

Commit 5edd47b

Browse files
authored
Merge branch 'TheAlgorithms:master' into master
2 parents f521847 + 9bfc314 commit 5edd47b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

maths/hardy_ramanujanalgo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import math
55

66

7-
def exact_prime_factor_count(n):
7+
def exact_prime_factor_count(n: int) -> int:
88
"""
99
>>> exact_prime_factor_count(51242183)
1010
3

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)