mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-12 17:49:50 +00:00
Update power.py
This commit is contained in:
parent
fe3d3d8593
commit
bcd0b508c3
@ -25,8 +25,6 @@ def actual_power(a: int, b: int):
|
||||
return actual_power(a, int(b / 2)) * actual_power(a, int(b / 2))
|
||||
else:
|
||||
return half * half
|
||||
else:
|
||||
return a * half * half
|
||||
|
||||
def power(a: int, b: int) -> float:
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user