We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a63b09 commit cd719e9Copy full SHA for cd719e9
Python/erect-the-fence.py
@@ -40,6 +40,4 @@ def cross(o, a, b):
40
# Concatenation of the lower and upper hulls gives the convex hull.
41
# Last point of each list is omitted because it is repeated at the beginning of the other list.
42
result = lower[:-1] + upper[:-1]
43
-
44
- # added
45
- return result if result[1] != result[-1] else result[:len(result)//2+1]
+ return result if result[1] != result[-1] else result[:len(result)//2+1] # modified
0 commit comments