From bcd0b508c3e9abd3bb60bda93a137c3a97f18e16 Mon Sep 17 00:00:00 2001 From: lighting9999 <120090117+lighting9999@users.noreply.github.com> Date: Sat, 8 Feb 2025 18:02:22 +0800 Subject: [PATCH] Update power.py --- divide_and_conquer/power.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/divide_and_conquer/power.py b/divide_and_conquer/power.py index e29932f9d..4f96bbb66 100644 --- a/divide_and_conquer/power.py +++ b/divide_and_conquer/power.py @@ -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: """