We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9ff050 commit 028e1b7Copy full SHA for 028e1b7
Multiply.py
@@ -1,6 +1,6 @@
1
def product(a, b):
2
if b < 0:
3
- return -product(a, -b)
+ return -1 * product(a, -b)
4
5
if a < b:
6
return product(b, a)
0 commit comments