mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Remove unnecessary else statement (#7759)
* Remove unnecessary else statement * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
71e8ed81ae
commit
501a1cf0c7
@ -10,7 +10,7 @@ def karatsuba(a, b):
|
|||||||
"""
|
"""
|
||||||
if len(str(a)) == 1 or len(str(b)) == 1:
|
if len(str(a)) == 1 or len(str(b)) == 1:
|
||||||
return a * b
|
return a * b
|
||||||
else:
|
|
||||||
m1 = max(len(str(a)), len(str(b)))
|
m1 = max(len(str(a)), len(str(b)))
|
||||||
m2 = m1 // 2
|
m2 = m1 // 2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user