Skip to content

Commit 1e0a1d2

Browse files
authored
Update erect-the-fence.py
1 parent cce1c35 commit 1e0a1d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/erect-the-fence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def ccw(A, B, C):
1818
points.sort()
1919
for i in itertools.chain(xrange(len(points)), reversed(xrange(len(points)))):
2020
while len(hull) >= 2 and \
21-
ccw(hull[-2], hull[-1], points[i]) < 0:
21+
ccw(hull[-2], hull[-1], points[i]) < 0:
2222
hull.pop()
2323
hull.append(points[i])
2424
return list(set(map(tuple, hull)))

0 commit comments

Comments
 (0)