mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-14 02:29:48 +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))
|
return actual_power(a, int(b / 2)) * actual_power(a, int(b / 2))
|
||||||
else:
|
else:
|
||||||
return half * half
|
return half * half
|
||||||
else:
|
|
||||||
return a * half * half
|
|
||||||
|
|
||||||
def power(a: int, b: int) -> float:
|
def power(a: int, b: int) -> float:
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user