Skip to content

Commit cd719e9

Browse files
authored
Update erect-the-fence.py
1 parent 9a63b09 commit cd719e9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Python/erect-the-fence.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,4 @@ def cross(o, a, b):
4040
# Concatenation of the lower and upper hulls gives the convex hull.
4141
# Last point of each list is omitted because it is repeated at the beginning of the other list.
4242
result = lower[:-1] + upper[:-1]
43-
44-
# added
45-
return result if result[1] != result[-1] else result[:len(result)//2+1]
43+
return result if result[1] != result[-1] else result[:len(result)//2+1] # modified

0 commit comments

Comments
 (0)