Skip to content

Commit f646d95

Browse files
saksham-chawlasedatguzelsemme
authored andcommitted
Add typing to binary_exponentiation_3.py (TheAlgorithms#9477)
1 parent 72c5ac7 commit f646d95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

maths/binary_exponentiation_3.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313

14-
def b_expo(a, b):
14+
def b_expo(a: int, b: int) -> int:
1515
res = 1
1616
while b > 0:
1717
if b & 1:
@@ -23,7 +23,7 @@ def b_expo(a, b):
2323
return res
2424

2525

26-
def b_expo_mod(a, b, c):
26+
def b_expo_mod(a: int, b: int, c: int) -> int:
2727
res = 1
2828
while b > 0:
2929
if b & 1:

0 commit comments

Comments
 (0)