mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Update binary_exponentiation.py
This commit is contained in:
parent
f5917f589c
commit
0393c5ad38
@ -23,7 +23,7 @@ def b_expo(a, b):
|
|||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
def b_expo(a, b, c):
|
def b_expo_mod(a, b, c):
|
||||||
res = 1
|
res = 1
|
||||||
while b > 0:
|
while b > 0:
|
||||||
if b&1:
|
if b&1:
|
||||||
|
Loading…
Reference in New Issue
Block a user