mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Update binary_exponentiation.py
This commit is contained in:
@ -23,7 +23,7 @@ def b_expo(a, b):
|
||||
return res
|
||||
|
||||
|
||||
def b_expo(a, b, c):
|
||||
def b_expo_mod(a, b, c):
|
||||
res = 1
|
||||
while b > 0:
|
||||
if b&1:
|
||||
|
Reference in New Issue
Block a user