We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa11f16 commit 70a6d98Copy full SHA for 70a6d98
Maths/absMin.py
@@ -6,7 +6,7 @@ def absMin(x):
6
>>absMin([3,-10,-2])
7
-2
8
"""
9
- j = x[0]
+ j = absVal(x[0])
10
for i in x:
11
if absVal(i) < j:
12
j = i
0 commit comments